PDA

View Full Version : Link colors


dthomsen8
02-13-2006, 01:53 PM
Suppose I have the following two links:

Activities Committee (act@fairmountcivicassociation.org)
Eastern State Penitentiary (http://www.easternstate.org)

and I want the first one to appear in maroon color, and I want the second one to appear in blue color. How do I set the colors?

(Yes, I know this something strange to do, but the client insists.)

johnph77
02-13-2006, 02:13 PM
I would set my link color in my ".css" file or style header.

{
A:link, A:active, A:visited {color: #xxxxxx;
}

then use the <font color=#xxxxxx"> tag inside the anchor of the link I wanted to display in a different color.

domedia
02-13-2006, 03:12 PM
Set up 2 different CSS classes for links:

CSS:a.product:link {color: yellow;}
a.product:visited {color: yellow;}
a.product:hover {color: red;}
a.product:active {color: yellow;}

a.sample:link {color: blue;}
a.sample:visited {color: blue;}
a.sample:hover {color: green;}
a.sample:active {color: blue;}

HTML:
Activities Committee (mailto:act@fairmountcivicassociation.org)
Eastern State Penitentiary (http://www.easternstate.org)