Be aware that CSS can be temperamental. If your document does not present correctly, check these first to verify that you have typed the syntax correctly:
Curly brackets in CSS rules
This will work
body {color: green;}
These will not
body (color:red;)
body [color:red;]
Check spelling and punctuation.
Balanced curly brackets (one pair per rule)
Colon between property and value
Semi-colon after each declaration
Check spelling and punctuation.
Multi-word properties are correctly hyphenated
background-color
text-indent
Container tags in the HTML document require open and closing tags. This includes the P and LI tags. The exception is the IMG tag.
Did you remember to save the .css file?
Did you upload a .css file and two .html files?
Did you include a line similar to the one below in your .html document head?
Is mystyle.css in the same directory as the html templates?
Check spelling and punctuation.
Did you refresh the HTML document in your browser? Use the F5 key on your
keyboard or the button
on your browser's toolbar.
Some CSS style specs just won't work in certain browsers. Check the Full
CSS Property Compatibility Chart. Oh, and don't forget to check spelling
and punctuation.