Forum Moderators: not2easy

Message Too Old, No Replies

Visited link problem....

         

Bowdii

7:09 pm on Sep 24, 2003 (gmt 0)

10+ Year Member



This is my css:

A:links {COLOR: #3399FF;text-decoration: underline;}

A:visited { COLOR: #3399FF;text-decoration:underline;}

A:hover { COLOR: #3399FF;text-decoration: none;}

A:active { COLOR: #3399FF; text-decoration: underline;}

When a user goes to the link, and comes back. The link will not execute the A:hover command again. Why is that?

The link just stays underlined, and I want it to not underline on a hover all the time.

Thanks for any help!

edit_g

7:25 pm on Sep 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think you need the active bit, take that out and it should work.

Birdman

7:54 pm on Sep 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this:

a,a:visited
{
color: #3399ff;
text-decoration: underline;
}
a:hover
{
text-decoration: none;
}

Grouping will save you some bytes and remember to use LOWERCASE ;) letters in your stylesheet and HTML.

Birdman

also: no need to redefine a rule in the hover class, unless it is different from the regular link. ie. color:

Bowdii

7:59 pm on Sep 24, 2003 (gmt 0)

10+ Year Member



Perfect!

Thanks guys!