Previous Message
Next Message

:hover in IE7 / IE6

Sent by Ingo Chao on 10 November 2006 08:08

Jonathan, in case this thread is about

IE7 has a new hover bug, we've seen it in several threads now [1,2]

The fix is to give IE 7 something to do, a kick, whatever. Some 
properties (we know of because of an old IE6 bug) seem to trigger this 
kick [2].

Here, I use background-position.

#menuHead a.menuLink:hover {
color: #903;

background-position: 0 0; /* kicks IE 7 */

..menuStyle a:hover {
color: #a70119;
background-color: #fff;

background-position: 0 0; /* kicks IE 7 */

Of course, one could just type

   background: #fff 0 0;

but that would cover the nature of this hack, and would be a maintenance 

I hope this helps, just checked the fix on a simplified local copy.

Please keep the URL always in your message. It's not easy to read this 



css-discuss [EMAIL-REMOVED]]
IE7 information --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread:

Possibly related: