It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Help with <a> pseudoclass

Help with <a> pseudoclass

Postby yoonkwun on Sun Dec 31, 2006 4:19 pm

For some strange reason, whatever my a:visited pseudoclass is, it stays.

In my CSS Style Sheet, I put in the 4 <a> pseudoclasses:

Code: Select all
a {
  text-decoration:none;
}

a:link {
  color:white;
}

a:hover {
  color:blue;
}

a:active {
  color:blue;
}

a:visited {
  color:white;
}


And in the HTML I have:

Code: Select all
<a href="index.html">Index</a>


I would expect it always be white and become blue when I hover over it, but it doesn't work. "Index" is always white. I tried removing the a:visited pseudoclass altogether. Since I already visited Index.html, it turns into it's default visited color, which is purple. I then tried hovering over it, and it works. It turns blue. Of course, I don't want it to be purple when already visited, I want it to be white, but still be blue when hovering over it.

Any help? Thanks.
yoonkwun
 
Posts: 0
Joined: Sun Dec 31, 2006 4:06 pm

Who is online

Users browsing this forum: No registered users and 8 guests