Forum Moderators: not2easy
In the <head> I have
<style type="text/css">
<!--
a:link {text-decoration: none;color: #CCCCCC}
a:visited {text-decoration: none;color: #CCCCCC}
a:hover {text-decoration: none;color: #990000}
a:active {text-decoration: none; color: #990000}
-->
</style>
However, I have one link on the page that I want color: #333333 as a:link and a:visited, with a:hover and a:active still #990000. What code should I put where to make this happen? Thanks!
a:link {text-decoration: none;color: #CCCCCC}
a:visited {text-decoration: none;color: #CCCCCC}
a:hover {text-decoration: none;color: #990000}
a:active {text-decoration: none; color: #990000}
a:link.new, a:visited.new {color: #D27F14;
text-decoration: none}
a:link.new, a:visited.new {color: #FFFFCC;
text-decoration: none}
-->
</style>
Then apply the class to the link.
<a class="new" href="your url">Your text</a>
it is best to put put the css in a separate stylesheet. You could also make the following changes to make it 'lighter':
a{text-decoration: none;color: #ccc; }
a:hover, a:active, a.newlink:hover, a.newlink:active{color: #900; }
a.newlink{ color: #333; }
and in the code the one link would be:
<a href="url" class="newlink">test 2 link</a>
hope it make sense
ps on a sidenote it is also good for usability purposes to keep all your link underlined but also blue - except if this would make them unreadable on your backgroundor clashes with your design