Forum Moderators: not2easy

Message Too Old, No Replies

css visited link problem

         

skytq

9:02 am on Jul 29, 2005 (gmt 0)

10+ Year Member




a.navlink:link {color:#FFFFFF; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; text-decoration:none;}
a.navlink:active {color:#FFFFFF; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; text-decoration:none;}
a.navlink:hover {color:#FFFFFF; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; text-decoration:underline;}
a.navlink:visited {color:#FFFFFF; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; font-weight:bold; text-decoration:none;}

when i mouseover, it will display underline. but after visited, it doesnt underline when i mouseover. wat's wrong?

HarryM

9:14 am on Jul 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you hit the "back" button to return to the page it will be showing the page at the same state as when you left it, i.e., with the link showing "visited". If you follow links back to the page it should show the page as new and mouseover should work.

Incidentally you don't need to repeat all the font and colour stuff for each condition, just what changes, in your case text-decoration.

skytq

9:23 am on Jul 29, 2005 (gmt 0)

10+ Year Member



i dun get it. let me clr this:

i want my visited link to be underlined when i mouseover. my problem now is, all my visited links doesnt underline when i mouseover.

SuzyUK

10:01 am on Jul 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi skytq and Welcome to WebmasterWorld!

just change the order of those links in the stylesheet to:
:link
:visited
:hover
:active

Tip: LoVe/HAte

Suzy

skytq

1:52 am on Aug 1, 2005 (gmt 0)

10+ Year Member



haha my senior just told me tht. thanx! it works!