Forum Moderators: not2easy
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. Very erratic.
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">
CSS 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. Looks like there are a few with IE7. Any help for this relative newbie appreciated.
Thanks
CoroRon