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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

visited link problems with CSS 1

Status
Not open for further replies.

Zarcom

Programmer
May 7, 2002
1,275
0
0
CA
I have the following defined in my CSS file/

A.Banner:link
{
color: White;
text-decoration: none;
}

A.Banner:hover
{
color: #ffc400;
text-decoration: none;
}

A.Banner:visited
{
color: White;
text-decoration: none;
}

The problem is that after the link has been visited the hover will not show up. How do I create my CSS so that when the link has been visited a user will still be able to hover over the link and see the different style?


That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Hi,

Your CSS should be like this:

a.Banner:link
{
color: White;
text-decoration: none;
}

a.Banner:active
{
color: White;
text-decoration: none;
}

a.Banner:visited
{
color: White;
text-decoration: none;
}

a.Banner:hover
{
color: #ffc400;
text-decoration: none;
}

Hope this helps!

Nate

mainframe.gif

 
Thanks that worked! Could you tell me why it worked though? Is it the order of the pseudo-class or the addition of the active pseudo-class?

That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top