Search code examples
javascripthtmlcssinternet-explorerinternet-explorer-6

IE6 Hover Issue


The CSS :hover doesn't work in IE6 for elements that are not links. Is there a workaround? e.g. how do I apply the :hover to a div?


Solution

  • There's whatever:hover. I've never used it myself but from what I hear, it works well.

    Whatever:hover is a small script that automatically patches :hover, :active and :focus for IE6, IE7 and IE8 quirks, letting you use them like you would in any other browser. Version 3 introduces ajax support, meaning that any html that gets inserted into the document via javascript will also trigger :hover, :active and :focus styles in IE.