English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Alright. So, I've got a CSS question- if you don't know what CSS means, PLEASE don't answer. I have been working with the "a:active{blahblah}" etc code. But you see, I have a different color for hover. An example:
a:link{color:#000000}
a:active{color:#000000}
a:hover{color:#ffffff}
a:visited{color:#000000}
is a sample of what my code might look like.

However, I need a way to refresh visited links so that even AFTER a link has been visited and you return to the page with that link on it, the link will still change color when it's hovered over. Is this possible? If so, where can I find the code or a tutorial? I really need help with this one, but prefferably from someone who's worked with the internet a long time and knows CSS well.

Thanks!

2007-05-27 14:30:34 · 2 answers · asked by Chinook 2 in Computers & Internet Programming & Design

2 answers

Try defining your link styles in the following order to prevent overriding properties when a link is in more than one state ( as in visited and hovered)

a:link
a:visited
a:focus
a:hover
a:active


In your list you have hover BEFORE visited so the visited color overrides the hover color......

2007-05-27 14:42:56 · answer #1 · answered by MarkG 7 · 0 0

You can put
a:link,a:visited{color:#000;} and
a:hover afterward.
visit here to see the further tutorial

2007-05-27 21:53:12 · answer #2 · answered by TBS 3 · 0 0

fedest.com, questions and answers