IE8: Div hover only works when background color is set, very strange, why?

MeProtozoan picture MeProtozoan · Oct 22, 2010 · Viewed 10.2k times · Source

Situation: Got a div with buttons images. Div needs to fadeIn on hover. Works in all browsers, except Internet Explorer. When I give the div a background color it suddenly works.

Check: http://ListAndPlay.com , top left are the controls.

The hover won't work in IE, try to add a background color to #buttons and it suddenly works.

Question: What is the reason for this? How to fix this properly?

Answer

Herman picture Herman · May 1, 2011

I recently ran in to this problem also. I also solved it by adding a 1 by 1 px transparent background image to the hover element. I felt like taking a shower afterwards.