Forum Moderators: not2easy

Message Too Old, No Replies

ie8 div background not loading

Setting background images on a div do not load with ie8

         

abilas

10:29 am on Sep 8, 2009 (gmt 0)

10+ Year Member



Has anyone else experienced a problem with ie8 not loading your background images when you first visit the site after clearing out your cache.

I have developed a site using a number of divs but a couple of the divs that have seperate backgrounds (low res jpgs) dont load and ie shows the page as still loading. Hitting refresh loads up the page again as normal, enabling compatibility mode allows the page to load up as normal.

I have created a test site with a one div, i've then set the div to have a background using a jpg image. see here <snip>

Try clearing out your cache and the click between the two/three links.

If I put all the css markup within the page itself rather than linking to the css file the page loads up as normal.

Would appreciate some feedback on this.

[edited by: swa66 at 10:59 pm (utc) on Sep. 8, 2009]
[edit reason] no links, please see ToS and Forum Charter [/edit]

Roan

2:04 pm on Sep 12, 2009 (gmt 0)

10+ Year Member



Hi... I'd say I've found IE8 has gone the other way a bit.. it's more picky about absolutely disciplined CSS now than other browsers. From what you've written, it sounds like something in your CSS maybe over-ruling or causing an issue (because when you isolate it by putting it in your page it works). I found that if you get the background: color url() position position repeat; in the wrong order, it doesn't like it where other browsers will tolerate it. Especially if the position is vertical horizontal instead of horizontal vertical... er, or which ever way round it's supposed to be (recommend you double check that, I'm a bit foggy today, late night going round in circles myself). Hope it helps