Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Thread Tools Display Modes
Old 02-13-2006, 02:53 PM   #1
dthomsen8's Avatar
Join Date: Jan 2006
Location: Philadelphia, PA 19130
Posts: 385
Default Link colors

Suppose I have the following two links:

Activities Committee
Eastern State Penitentiary

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.)
dthomsen8 is offline   Reply With Quote
Old 02-13-2006, 03:13 PM   #2
Join Date: Jan 2006
Location: CA
Posts: 31

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.
johnph77 is offline   Reply With Quote
Old 02-13-2006, 04:12 PM   #3
domedia's Avatar
Join Date: Dec 2003
Posts: 9,730

Set up 2 different CSS classes for links:

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;}
domedia is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 12:31 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com