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

Chage color on mailto link

Status
Not open for further replies.

ljCharlie

IS-IT--Management
Apr 21, 2003
397
US
Please help. How do I change the color of the text that have the mailto link? I have tried putting link="#FFFFF" in the body tag but this doesn't seem to work.

Many thanks in advance!

Charlie
 
ljCharlie, use CSS...


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<style>
A.myLink:link {color:#003399;}
A.myLink:visited {color:#003399;}
A.myLink:hover {color:#ff0000;}
A.myLink:active {color:#003399;}
</style>
</head>

<body>
<a class=&quot;myLink&quot; href=&quot;mailto:someemail@here.com&quot;>Clicke Me</a>
</body>
</html>


Forget the Nobel Peace prize, I just want to take over the world!! [hammer]
 
Thank you both of you for helping me out. I'm greatly appreciated. By using the CSS, it works!

Chong
 
ljCharlie, glad we could have helped...

Forget the Nobel Peace prize, I just want to take over the world!! [hammer]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top