Forum Moderators: open

Message Too Old, No Replies

Link state color don't work in the first place

         

neveseven

7:56 am on Jan 21, 2005 (gmt 0)

10+ Year Member



Pls help. Tried the below order in CSS for 3 cases at the bottom:

link
visited
hover

Problem:
When come to the page, there is no link color (blue & underline) in the first place. The text of EVERY ROW is already in visited state when come to the page. However the hover color does work in every hyperlink.

The above problem happen in 3 cases below,
1) hyperlinks and linked text share the same page
2) ONLY hyperlinks on one page and ALL other linked text are individually on seperate pages
3) hyperlinks commonly available at every linked text which is on individual page. ie each linked text page has common hyperlinks, done with .dwt file.

What went wrong? Can someone help, pls.

jetnovo

3:08 am on Feb 11, 2005 (gmt 0)

10+ Year Member



Hi there

Do you use a Cascading Stylesheet for definining the colours of links?

If yes, you need to define them in this order in your stylesheet:

1st: a:link
2nd: a:visited
3rd: a:hover
4th: a:active

...apparently its something to do with one attribute overiding the other one if they're in the wrong order.

Hope this at least partially helps?

Regards,
Jet

Corey Bryant

2:40 pm on Feb 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Jet is correct:
a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.
a:active MUST come after a:hover in the CSS definition in order to be effective.

(love-hate)

Can you provide the coding you are using in the CSS?

-Corey