IE image bug fix

I recently have been struggling with a site I’ve been working on. My trouble has been that a few of the background images are not showing up in internet explorer. This happens in any version of internet explorer. It took me too long to figure out why this was happening but here it is. Your css might look something like this:

#myDiv {

background:url(images/myImage.png)top left no-repeat;

}

This will not show up in internet explorer. Here’s the fix:

#myDiv {

background:url(images/myImage.png) top left no-repeat;

}

Notice the space between “.png)” and “top”. That’s all you need to do to get your background images to show up in internet explorer.

Prev Next

Leave a Reply