Hey guys,
How can I make sure that one div has a hover:underline, and another hover: none ? The divs are stored in a separate css file.
Hey guys,
How can I make sure that one div has a hover:underline, and another hover: none ? The divs are stored in a separate css file.
I presume you mean a:hover as IE doesn't support hover of anything else.
Unless of coarse you use some form of hack.
If so then just set the divs with differant classes e.g.
Then add some css e.g.HTML Code:<div class="firstdiv"> <a href="anywhere.html">anylink</a> </div> <div class="seconddiv"> <a href="anywhere.html">anylink</a> </div>
.firstdiv a { text-decoration:none; }
.firstdiv a:hover { text-decoration:underline; }
.seconddiv a { text-decoration:none; }
.seconddiv a:hover { text-decoration:none; }
Isn't supported in IE6 or below, but IE7 and standards compliant browsers support it. For IE6, you would need javascript. I'm working on a script, I'll let you know when it's done.Code:#first_div:hover{ text-decoration: underline;} #second_div:hover{ text-decoration: none;}
Last edited by alexjewell; 08-01-2007 at 04:30 PM.
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
You can also use an HTC to fix this for IE<7.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks