PDA

Click to See Complete Forum and Search --> : CSS ??


chenko
Jun 6th, 2001, 02:08 PM
I just use this basic CSS to change all the links on the page, but when a link has been visited... It doesnt underline on hover, yet it changes colour? any ideas :confused:


a:link{color:blue; text-decoration:none};
a:hover{color:red; text-decoration:underline};
a:visited{color:blue; text-decoration:none}


Thanks
Si

JoshT
Jun 6th, 2001, 02:17 PM
You have to set the a tag first

a {color: blue; text-decoration:none}


And I think the visited is given precedence over hover.

chenko
Jun 6th, 2001, 02:36 PM
Thanks

I changed it to...

a:link{color:blue; text-decoration:none};
a:visited{color:blue; text-decoration:none};
a:hover{color:red; text-decoration:underline}

...and it worked

cheers!

Wynd
Jun 6th, 2001, 02:42 PM
Yeah, you have to put a:hover last or else it won't work.