Any tags that do not have an open and a closing tag need to be self-closed like the one above. You also need to make sure that your HTML file and your CSS file are in the same directory.
08-03-2010, 07:25 PM
08-03-2010, 07:36 PM
And what exactly do you mean by "hmm,nope"? What is the issue? I tested the code above (with the modification I suggested) and I see the background color the CSS specified. What are you expecting to see that you don't see?
08-03-2010, 07:42 PM
or you have your stylesheet outside of the root of the html document. We can't know for sure without knowing what directory the css file is in.
08-03-2010, 07:55 PM
Do you have a link to a live site?
08-03-2010, 08:02 PM
The code looks perfect so i suspect it is either an issue with the way i am trying to view my site or the locations of my html/css files.
The way I am viewing my html file is just by clicking the firefox document it saves as and viewing it in firefox.
Both .css and .html files are in the same folder on my desktop.
The background color is white when css is supposed to make it a blue.
08-03-2010, 08:05 PM
If you don't have a link can you attach both files?
08-03-2010, 08:10 PM
My computer saves .html files as firefox documents automatically and it doesn't seem like I can upload it through here.
here is the text contained inside of my html file though: