27 February 2009

Yet again, IE 6 CSS is on my plate today at work. Drop-down menus specifically. Always interested in getting my work done in the least amount of effort I hit the Internet up for a better IE 6 fix all.

My expectations were low, but behold! I came across this gem from Peter Nederlof appropriately named Whatever:hover.

The biggest problem with IE 6 is that it doesn't support the :hover selector for anything other than an anchor. What this fix does is this: ( quoted from the site)

  • Search all stylesheets for :hover rules IE doesn't support
  • Insert a new rule IE does support, like one with class names
  • and finally, set up script events for switching class names

I implemented this expecting to have to do at least some customization, but again, I was pleasantly surprised that it just worked! A big thanks to Peter for making web developers' lives a little easier.