Click to See Complete Forum and Search --> : help with links...


Greelmo
05-22-2003, 12:27 PM
I'm brand new to CSS and i was wandering... when you use this...

<style type="text/css">
a:link {color: cyan; text-decoration: none}
a:hover {color: magenta; text-decoration: underline}
a:visited {color: cyan; text-decoration: none}
</style>

the visited link doesn't work with the hover element anymore... why not? How do i make it so even the visited links get underlined with hovered?

Jona
05-22-2003, 12:29 PM
Put the visited CSS code before the hover CSS code.

pyro
05-22-2003, 01:23 PM
The correct order for all pseudo-classes can be found at http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes

Greelmo
05-22-2003, 01:29 PM
thanks