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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I change the color of one link? 2

Status
Not open for further replies.

Zych

IS-IT--Management
Apr 3, 2003
313
US
Hello All,

How do I change the color of one link? I want all of the other links to operate normaly. I know I can remove the underline by using STYLE="TEXT-DECORATION: NONE" in the anchor section. I would imagine the color would be similar but I can not find out how to do this. I know I can modify it in the body but I only want to change one link.

Thx - Zych
 
a
{style="text-decoration: none; color: #FFFFFF;"}
...where FFFFFF is the hex color of choice.

You can also change the hover style of the link:
a:hover
{style="text-decoration: underline; color: #ABCDEF;"}
 
Thanks for the quick answers guys. I gave you both stars. Thank you thank you thank you!
 
To rectify a small error in Clive's example. Pseudo classes must be followed in correct order to function correctly:
Code:
<style type="text/css">
a.c1         { color: blue; text-decoration: none; }
a.c1:visited { color: blue; }
a.c1:hover   { color: red; }
a.c1:active  { color: yellow; }
</style>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top