views:

46

answers:

3

i know that ie6 can only do hover on a href element. but i do not need a href element.

i have ul.li element like below

ul.testclass li {
    display: inline-block;


}



ul.testclass li:hover {
    background-color: #ffffff;


}

it work on all browsers except ie6. any workaround to make it work in ie6?

+1  A: 

A common workaround is using a htc file.

BalusC
+1  A: 

Or you could use something like ie7.js

Yi Jiang
+1  A: 

There's a variety of ways you can do it. The simplest is probably to use Dean Edwards' wonderful IE7.js.

Olly Hodgson