CSS what am i doing wrong?

Ruckus

Hardforum Moderator-in-Chief
Staff member
Joined
Oct 12, 2001
Messages
10,768
ok Im doing a css on linking

Code:
<style type="text/css">
a:link { 
color: "#FFFFFF"; 
text-decoration:none; 
font-weight:bold; 
}
a:visited { 
color: "#808080"; 
text-decoration:none; 
font-weight:bold;
}
a:active { 
color: "#FFFFFF"; 
text-decoration:none; 
font-weight:bold;
}
a:hover { 
color: "#C0C0C0"; 
text-decoration:none; 
font-weight:bold;
}
</style>

basically when i put a link i.e.
Code:
<A href="xxx">link</a>
it does not remove the underline or bold the link unless i mouse over, on mouse over it will bold and remove the link but not on the regular link. what am i doing wrong that its not applying to the initial <A>?
 
add

Code:
a {
    color: "#FFFFFF"; 
    text-decoration:none; 
    font-weight:bold; 
}

To effect the default state of the anchor tag.
 
Also those pseudo tags must be in the following order:

a:link
a:visited
a:hover
a:active
 
It's also not necessary to put the color code in quotes.
 
Back
Top