View Full Version : Underlines

Jon W
07-22-2008, 05:51 AM
With CSS how is it possible to change the underline color to a different color then the color of the text?

a:hover { color:white; text-decoration:underline; }

Newegg.com has a good example of what I'm talking about. Just hover over one of their links on their home page.

Jon W
07-22-2008, 05:59 AM
Any help on this one?

Jon W
07-22-2008, 06:13 AM
I've figured this out.

a:hover{color:#ffffff;text-decoration:none;border-bottom:1px solid #009933;}

07-22-2008, 06:20 AM
Try using border-bottom instead of underline.

border-bottom:1px solid red;

or something like it.

I once used this technique to get a vertical line.