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.


