troubleshooting Question

Double background-image in IE6

Avatar of adiemeer
adiemeer asked on
CSSWeb Browsers
4 Comments1 Solution1607 ViewsLast Modified:

I do have a website where I use a div with a background-image. In IE6 the background-image is displayed two times. I simplified the website in order to make the problem more clear. I only have <div class="image"></div>, where the class image is defined in a stylesheet as follows: .image{height:8px;width:8px;background-image:url(./image.gif);}. The actual size of image.gif is 8 x 8 px.

In IE7 and FireFox the image is displayed correctly. In IE6 the image is displayed two times, above each other. If I define <img src="./image.gif" />, then IE6 is working fine.

I'm curious what causes the double background-image.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros