PDA

View Full Version : css +color underline but not text?


N8
02-21-2005, 03:34 PM
Is there a way to change the color of the underline on a link, but have the text stay the same?
( white text but a red underline)

Dean C
02-21-2005, 04:15 PM
a.special { border: 1px solid #CC0000; text-decoration: none; color: #hexhere; }


Then use:


<a href="#" class="special">text</a>

N8
02-22-2005, 09:32 PM
Ahh, I never thought of using a border on <font> or <a> tags.

Thanks :)

Dean C
02-23-2005, 09:06 AM
You're welcome :)