...

View Full Version : No doubt such a rookie mistake..but why?



aaronoafc
02-10-2012, 05:14 PM
Does anybody know why the background on this HTML file is not turning red? I have linked it to my CSS file and set it to turn the "body" red. I want the entire page background to be red.

HTML name - index.html

<!doctype html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css"/>
</head>
<body>




</body>
</html>

CSS name - styles.css

body{
background:##FF0000;
}

I've tried .body....#body...html... .html.....#html.... also tried background-color:

Thanks

teedoff
02-10-2012, 05:18 PM
Can you post your entire html and css? Better would be a link to your live test site.

aaronoafc
02-10-2012, 05:20 PM
That's all it is mate just them two, is it because there is no html code in the body of the file? I just want the background of the html page to be completely red, however for some reason it is not working, I have done it 100 times before but this one just isn't doing it and I can't think why

teedoff
02-10-2012, 05:36 PM
lol nevermind. I havent had my coffee. I didnt read your css. It should be

background-color: #FF0000;

One pound sign as well.

aaronoafc
02-10-2012, 05:37 PM
Thanks, how did I miss the two # symbols! my bad!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum