Thread: css link text
View Single Post
Old 27-03-2003, 11:41   #3 (permalink)
vickygale
Registered User
 
Join Date: Feb 2003
Posts: 39
You should be able to do what you want by using the class attribute on the links you wish to be a different colour e.g.

For the links at the top of the page:

.top a:link {text-decoration:none; color:#FFFFFF;}
.top a:hover {text-decoration:none; color:#FFCC33;}
.top a:visited {text-decoration:none; color:#FFFFFF;}
.top a:active {text-decoration:none; color:#FFFFFF;}

For the links on the rest of the site:

a:link {text-decoration:none; color:#FF0000;}
a:hover {text-decoration:none; color:#FFCC33;}
a:visited {text-decoration:none; color:#FF0000;}
a:active {text-decoration:none; color:#FF0000;}

In the html:

<a href="..." class="top">...</a> for the links at the top of the page
<a href="...">...</a> for the links on the rest of the site.
  Reply With Quote