[thelist] Different coloured underline for links
Bill Mason
evolt at accessibleinter.net
Sun Mar 17 13:14:01 CST 2002
The in-development CSS3 spec will include being able to define text color
and underline color separately:
http://www.w3.org/TR/2002/WD-css3-color-20020219/#css3-user
Until then, this way is probably as good as any to manage the colors.
At 10:03 AM 03/17/2002, Kristina wrote:
> > For example how do I create red text with a blue underline?
>::
>
>If anyone else has any other ways of doing this, I'd love to know
>about them, as I'm not sure how correct it is putting other tags
>inside <a> tags. It doesn't seem to be the ideal way of doing it.
>
>[external style sheet]
>a:link {
> color : #0000ff;
> text-decoration : none;
>}
>
>a:visited {
> color : #888888;
>}
>
>a:active, a:hover {
> color : #ff0000;
> text-decoration : underline;
>}
>
>.menuLink {
> color : #0000ff;
>}
>
>
>[html]
>
><a href="linkname.htm"><span class="menuLink">The area</span></a>
>
>(will give a blue link with a red underline)
Bill Mason
Accessible Internet
evolt at accessibleinter.net
http://www.accessibleinter.net/
More information about the thelist
mailing list