Internet Explorer – hovering on non-link items

| geek

Internet Explorer 5.5 and 6 don’t support the :hover pseudoclass on anything aside from A link elements, but the site that I’m working on calls for hover behavior on form submit buttons too. (And you know how I hate working on cross-browser issues…) I followed the instructions in whatever:hover, but things still weren’t getting picked up. The missing step was to add the following line to my /etc/mime.types:

text/x-component	htc

and restart Apache. That did the trick.

Darn you, IE!

You can view 2 comments or e-mail me at sacha@sachachua.com.

2 comments

Chris Gurney

2008-09-05T19:05:58Z

Hmm! This may have been the solution to a problem I was having a few weeks ago, where I was using IE's behaviors to work around PNG alpha transparency. Worked for our designer, worked on my machine, but not on our host's Apache server...

I don't have any use for this yet, but I think it will come in handy some time. Nice find.