CSS Stylesheet

Status
Niet open voor verdere reacties.

Sven2007

Gebruiker
Lid geworden
8 feb 2007
Berichten
113
Dit heb ik nu:

body{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}

Maar hoe zet ik deze font nu in het wit ?
Ik probeerde al font-color: #FFFF zonder succes...
 
body{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-color: #FFFFFF;
}

Lukt nog steeds niet...
 
font-color en font is dus niet hetzelfde....

Sla onderstaande op als html en zie.

PHP:
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>(Type a title for your page here)</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="description" content=" ">
<META name="keywords" content="  ">
<meta name="Author" content="Peter Vazed">
<META name="robots" content="index, follow">
<META name="revisit" content="7 days">
<meta http-equiv="Content-Style-Type" content="text/css">

<style type="text/css">

     body{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 29px;
color: #FFFFFF;
background-color:#ff0000;
}
.info{
border: dotted 3px #000000;
padding:10px;
}
       </style>
</head>

<body >

<div class=" info" >tekst </div>

</body>
</html>


Overigens:
als je een css gebruikt wel een doctype in je pagina zetten.
 
Laatst bewerkt:
antwoordje

Probeer deze...
Wedden dat het lukt?!:thumb:

body{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-color: white;
}
 
Probeer deze...
Wedden dat het lukt?!:thumb:

body{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-color: white;
}

Oh ja?
dus zo moet hetwerken:
PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>(Type a title for your page here)</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="description" content=" ">
<META name="keywords" content="  ">
<meta name="Author" content="Peter Vazed">
<META name="robots" content="index, follow">
<META name="revisit" content="7 days">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css" media="all">
 @import url("zp.css"); 
</style>

<style type="text/css">
body{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-color: white;
}
 
.info{
border: dotted 3px #000000;
padding:10px;
}

.wit{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 29px;
color: white;
}       </style>
</head>

<body bgcolor="#e4e0c9" >

<div class="info" >tekst in het wit? </div>
<div class="info" >
<div class="wit" >tekst in het wit? </div>
 </div>
</body>

</html>

:cool:
 
Oh ja?
dus zo moet hetwerken:
PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>(Type a title for your page here)</title>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="description" content=" ">
<META name="keywords" content="  ">
<meta name="Author" content="Peter Vazed">
<META name="robots" content="index, follow">
<META name="revisit" content="7 days">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css" media="all">
 @import url("zp.css"); 
</style>

<style type="text/css">
body{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-color: white;
}
 
.info{
border: dotted 3px #000000;
padding:10px;
}

.wit{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 29px;
color: white;
}       </style>
</head>

<body bgcolor="#e4e0c9" >

<div class="info" >tekst in het wit? </div>
<div class="info" >
<div class="wit" >tekst in het wit? </div>
 </div>
</body>

</html>

:cool:

Ja maar die is zo ingewikkeld :confused:
 
Ingewikkeld?
Gewoon een html pagina met een style in de head.

Dit:
body{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
font-color: white; -> werkt niet
}


.wit{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 29px;
color: white; -> werkt wel

In html heb je wel
font-color
in een style is het
color

:cool:
 
Status
Niet open voor verdere reacties.
Steun Ons

Nieuwste berichten

Terug
Bovenaan Onderaan