Click to See Complete Forum and Search --> : CSS div hover - why doesn't this work in IE7?
swofford
10-01-2008, 01:09 PM
http://www.littleduck.com/test.html
This works in FF and Safari (for PC and Mac), but not in IE7. It's just a simple rollover ... any tips?
(The source code is viewable at the site, if that's OK!)
Thank you!
dtm32236
10-01-2008, 01:33 PM
I'll guess that it's one of two things:
1 - no doctype (you need one)
2 - IE doesn't support hover on DIVs (test it by trying different, more simple effects on divs)
bluestartech
10-01-2008, 01:46 PM
use some javascript and an onmouseover() event to handle changing style of the div u need..
swofford
10-01-2008, 02:22 PM
1 - no doctype (you need one)
Holy crap, thank you. Adding doctype worked. I was just doing a quick 'n dirty ... in the future I'll remember not to do them THAT quick 'n dirty.
dtm32236
10-01-2008, 02:32 PM
awesome - glad it worked out...
Eyveneena
12-17-2008, 07:52 AM
wow, it does work with just adding doctype!
pretty cool
:)
Cory R
12-17-2008, 09:15 AM
Adding the doctype ensures that strict mode is enabled, as opposed to the original mode; quirks mode.