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

How do I change hyperlink text color?

Status
Not open for further replies.

paul963

Technical User
Jan 16, 2006
5
0
0
JP
How do I change the color of one hyperlink (text) without changing the color of all of them by using page properties?
 
2 perfectly acceptable css ways - each tek-tips link will appear blue and google links will appear green:

#1: inline styles (easy for a quick job)
Code:
<a href="[URL unfurl="true"]http://www.tek-tips.com">go[/URL] to tek-tips</a>
<a href="[URL unfurl="true"]http://www.google.com"[/URL] [!]style="color:green"[/!]>go to google</a>

#2: create a class (more portable, easier to maintain)
Code:
<style type="text/css">
a {
   color:blue;
}

[!]a.greenLink {
   color:green;
}[/!]
</style>
<a href="[URL unfurl="true"]http://www.tek-tips.com">go[/URL] to tek-tips</a>
<a href="[URL unfurl="true"]http://www.google.com"[/URL] [!]class="greenLink"[/!]>go to google</a>

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top