The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Non-load of body background color in Explorer 7

Hi,

Wonder if you can help with this one...

If you open my site: http://www.millionsofcolours.co.uk in Explorer 7 then the body tag background color does not load, leaving a load of whitespace at the bottom of the page. Click refresh once and you will see the intended grey coloring.

Curious, It didn't work the first in IE7 time but after i refreshed the background loaded perfectly. I think it is somehow related to the conditional comments as there appears to be something wrong with them.

"When you say 'I wrote a program that crashed Windows',
people just stare at you blankly and say 'Hey, I got those
with the system, for free'." (L. Torvalds)

Still not right

Thanks for yoyr comments!

I have taken a look at these things and the behaviour is still the same - in Explorer only. Its almost as though I need to 'remind' Explorer to load the background colour once the page has loaded. Do I have to resort to javascript?

Not that I know of

Thanks very much for checking

I don't I have fixed it. If there is no cached page on your computer (e.g. the first time you visit the page) there is a large white region towards the bottom of the browser window (unless you are working in 800x600).

I can see the problem when I load the page from your site and clear the cache each time then only half the background color displays.

However when I copy the code locally and try it from my end then it works every time even with clearing the cache.

This makes it impossible for me to try out anything and see where its going wrong. It seems to suggest a server problem at your end but even when I link to your css file it still works ok for me.

I would start by taking out the cdata code from the css file as there is no need for that in there and may be causing a problem. You only need those hiding structures when the code is in an xhtml page (afaik).

If that doesn't resolve it then remove everything from the css file except for the body background color and then see what happens. You should be able to narrow it down if the problems disappears at some stage.

Try linking to the file instead of import and see what happens.

If you narrow the problem down then be sure to post your findings here