PDA

View Full Version : Help! Issues with links and css


gnat66798
06-14-2010, 10:06 AM
Hi Guys

I have written the below css as I would like the links black regardless of whether they have been visited or not with only a underline when hovering over the link. However when you view the web page they are in blue and purple? I have deleted it and written it over and over again however there is no difference?

I am being blind and have missed something?

Any help with be muchly appreciated. I am going to throw my computer out the window soon!!! :( :( :( :(

Cheers

Nat

.link2
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color:000000;
text-decoration:none;
outline:none;
}
.link2 a:link
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color:000000;
text-decoration:none;outline:none;
}
.link2 a:visited
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color:000000;
text-decoration:none;outline:none;
}
.link2 a:hover
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
color:#000000;
text-decoration:underline;outline:none;
}

edbr
06-14-2010, 10:24 AM
color:000000; should be
color:#000000;

gnat66798
06-14-2010, 10:28 AM
OMG! Thank you!!!

I think I was staring at it for so long I just didn't see that simple mistake!!! :oops:

Thanks!!!

Nat :mrgreen: :mrgreen:

Corrosive
06-14-2010, 12:55 PM
Actually you can also use the shorthand for black hex. Written as #000