Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS - A:Visited

Status
Not open for further replies.

bra1niac

Programmer
Jun 13, 2001
127
0
0
US
I can't believe I have never had this problem before. And I use CSS a LOT.

In a nutshell, here's what I am trying to do:

When a user mouses over text (color: orange;)which is an anchor (A:Hover {color: white;}) I would like the text to revert to the orange. As we know it normally does not. Well, I have added the element of A:Visited {color: orange;} but now the A:Hover doesn't work. Basically, there is no rollover.

How can I get it to swap it back to the original color without using javascript? The javascript I am currently using for this same anchor will conflict so the CSS was the perfect solution until...

Does anyone know a workaround? "It's easier to ask forgiveness than it is to get permission." - Rear Admiral Dr. Grace Hopper
 
Nevermind.

In case anyone is wondering:

Set A {color: orange;}
Set A:Hover {color: white;}

It works just fine. Sheesh.
"It's easier to ask forgiveness than it is to get permission." - Rear Admiral Dr. Grace Hopper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top