PDA

View Full Version : I'm just not seeing it



zigvab75
Mar 6th, 2012, 04:21 PM
Can someone please tell me what I've done wrong here?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><link rel="stylesheet" type="text/css" href="main.css" />
</head>
<title></title>
<body>

This is <em>white</em> text on a<strong> black</strong> background



</body>
</html>


body {
background; #000000;
color: #FFFFFF;
}

It's gotta be something simple that I'm overlooking. I'm not a COMPLETE noob to CSS but I'm not advanced either. It's not showing up in any browser that I use. I just get a blank white page.

claire_t
Mar 6th, 2012, 04:48 PM
Hi
your CSS code isnt quite right. You have a ; after background on the css. there should be a :

Try changing the css to



background-color:#000;
color:#FFF;


That should give you a black background with white text. :)
Hope that helps!
C

sean3838
Mar 6th, 2012, 10:32 PM
body {
background; #000000;
color: #FFFFFF;
}



Look at your syntax ;) I highlighted your mistake in red.