Previous Message
Next Message

RE: [css-d] Specifying Link Color

Sent by Bill Creswell on 27 January 2003 16:04


>Hello. I specified my link colors in my styles, but would like to have a
>particular link be a different color. Until I get my classes and IDs figured
>out, I'd like to specify the colors (link, visited, hover) right in the A
>tag, but I can't seem to figure out the language to use. Any help would be
>appreciated.

I don't know why you would. But as far as I know, you can only color one state that way:
<a style="color:red" href=#>link</a>

Wouldn't you rather say:

a.red:link {color:red}
a.red:visited {color:yellow}
a.red:hover {color:black}
a.red:active {color:white}
<a class=red href=#>link</a>


Bill Creswell
Helpdesk/Webmaster
Van Eerden Distribution
http://www.vaneerden.com
(616) 452-1426 Ext. 293
Previous Message
Next Message

Possibly related: