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!

Link color issue 1

Status
Not open for further replies.

kensington43

Technical User
Nov 29, 2005
50
US
After someone uses a link it changes color.

How can I keep the original blue color on the link after someone has clicked on it?

Basically keep the link color always blue even if it has been used or not.

Is this the right direction and if so what goes in the style part??
Code:
<style>
.notChangeColor
{//what goes here?
}

</style>


<a href="myLink.cfm" style="notChangeColor">Link</a>
 
No need for the (incorrect) style attribute. Just use:

Code:
<style type="text/css">
a, a:link, a:visited, a:hover, a:active {
   color: blue;
}
</style>

...

<a href="somelink.html">text</a>

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks for your help on this and also in the JavaScript forum for another question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top