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

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>
<link rel="stylesheet" type="text/css" href="styles.css"/>


CSS name - styles.css


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


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

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

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.

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