Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple visited linik colors

Status
Not open for further replies.

Aeros

Programmer
Oct 7, 2002
166
US
Is it possible to have multiple visited link colors in a single page? If so how woudl this be done?

Thanks
 
You'll need to add "classes" to your links, and define colors for them. Something like:

<style type=&quot;text/css&quot;>
.blueLink A:visited {color:#0000cc;}
.redLink A:visited {color:#ff0000;}
.greenLink A:visited {color:#00cc00;}
</style>

<a class=&quot;blueLink&quot; href=&quot;somepageB.htm&quot;>blue link</a>
<br>
<a class=&quot;redLink&quot; href=&quot;somepageR.htm&quot;>red link</a>
<br>
<a class=&quot;greenLink&quot; href=&quot;somepageG.htm&quot;>green link</a>
 
See faq215-1491 for cian's excellent tutorial on this kind of thing.

-- Chris Hunt
Extra Connections Ltd

The real world's OK for a visit, but you wouldn't want to LIVE there!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top