cororon Posted October 30, 2007 Share Posted October 30, 2007 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 More sharing options...
Synook Posted October 31, 2007 Share Posted October 31, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.