a:link help
Posted: Thu, 2008-07-24 10:20
Hi Im a newbie here so hope you guys (+ girls) can help me.
I have created a style sheet which has worked nicely for a year or so.
But i want to add new nav bar at the top of my page, i need to have the the text in white rather than
the grey that i have allocated for the rest of the site.
Is there anyway of having 2 colours for links or How do i create an exception to the rule.
This is the code
a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
text-decoration: underline;
Thanks for your help.


Regular
Posts: 44
Joined: 2007-12-19
Hi, just do something like
Posted: Thu, 2008-07-24 12:22
Hi, just do something like this - change the id to suit
#nav a {
text-decoration: none;
color: #000;
}
#nav a:visitied {
text-decoration: none;
color: #000;
}
#nav a:active, #nav a:focus, #nav a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333;
text-decoration: underline;
}
Knowledge is Power