View Full Version : Background correct in DW but not in preview or after uploading

03-11-2009, 09:44 AM
In my CSS, I changed the background colour to F8E4C2 after first creating a DW template. When viewing my pages in DW, the correct background colour displays. When viewing my pages in Preview or after uploading them to my web server, only a white background displays.

This is the code.

body {
margin-left: 150px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
color: #000000;
background-color: F8E4C2;

Could someone please advise me on how to fix this?

Thank you.

03-11-2009, 10:06 AM
refresh your cache

d a v e
03-11-2009, 10:15 AM
and you need the octothorpe (has sign) on your hex codes too
background-color: F8E4C2;
should be
background-color: #F8E4C2;

03-11-2009, 10:17 AM
I did that many times. And I just did again right now before replying. It does not fix the problem.


03-11-2009, 10:19 AM
thank you - thank you - thank you !

Adding the # fixed the problem!

d a v e
03-11-2009, 11:20 AM
it's an easy thing to miss -even edbr missed it:)
[edit: btw i called # a has sign when i meant 'hash' sign]

don't forget to use this sort of service to check your css from time to time too