Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE 6 CSS Hover non Anchor Tag

What is the simplest and most elegant way to simulate the hover pseudo-class for non-Anchor tags in IE6?

I am specifically trying to change the cursor in this instance to that of a pointer.

like image 578
YonahW Avatar asked Aug 31 '08 03:08

YonahW


1 Answers

I think the simplest way is to use the hover.htc approach. You add the hover.htc file to your site, then reference it in your stylesheet:

body { behavior:url("csshover.htc"); }

If you want to keep things as clean as possible, you can use IE conditional comments so that line is only rendered users with IE6.

like image 55
Jon Galloway Avatar answered Sep 17 '22 15:09

Jon Galloway