Jump to content

Background colour not resolving in IE7


cororon
 Share

Recommended Posts

Hi We have some sites using css which work fine in IE6 and Firefox but have an irregular issue in IE7. Seems that sometimes the page background color resolves OK and other times it doesn't (ie white, not colored as it should be). If the page opens from a link on the page or menu option, often it doesn't resolve. If I do a page refresh it is usually OK. The rest of the css formatting etc looks OK Doc type is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> I have also tried using DOCTYPE HTML 4.01 Transitional & Strict and XHTML 1.0 TransitionalCSS and HTML validate fine. I have tried to always create "clean code" with no fixes, hacks or workarounds. The body css code is body { margin:0px; background-color:#C0DFFD; } I'll send a link to the site, css file etc for anyone who wants it. Seems this is another little MS brainteaser to keep us on our toes. Any help for this relative newbie greatly appreciated as I have tried everything I can to debug it, including comparing the code with some other sites that don't have the problem. Thanks CoroRon

Link to comment
Share on other sites

Err.... the link will be helpful, there is not enough information in your post. The CSS snippet is fine, it may be a child element that is over-riding the background-color

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...