Underline HTML links on mouse-over?

Dooling37

Senior member
Jun 7, 2000
488
0
0
What I want to do for my site is have all links a different color from regular text using CSS, but not underlined. When the visitor places the mouse over the link, I would like to to then be underlined. I've seen many sites do this, but for some reason I can't find one now when I need it to look at the code.
I believe the way that sites usually do this is with JavaScript. Is there any other way to do this, cause I really wanna stay away from JavaScript if possible.

Thanks alot!
 

Dooling37

Senior member
Jun 7, 2000
488
0
0
Come to think of it, that's done right here on anandtech, all over the place. I checked out the source and the css, but still can't quite figure it?!?
I keep seeing
A.something:hover {text-decoration: underline}

which makes sense, except I can't figure out what to put in place of 'something.'
Is that a class??

Thanks
 

Dooling37

Senior member
Jun 7, 2000
488
0
0
Update: I got it to work with just a simple hover in IE and Opera. And it apparently doesn't work in Netscape at all, so I'm all set...

Just thought I would share in case anyone else wanted the info... ;)
 

GoldenBear

Banned
Mar 2, 2000
6,843
2
0
Yup, Netscape 4.x and below versions don't support Cascade Style Sheets as well as IE and other browsers do.