I have a situation where I a list of links that point to specific pages.
What I want is when one link is clicked and the browser forwards to that page, the link that was clicked goes red. When the next link below gets clicked and the page forwards that link goes red, but the previous one goes back to grey.
I know of the 4 CSS attributes:
link
visited
hover
active
which of course are not meant to do this.
I have tried the .selected CSS tag but it isn't working correctly.
It list all the links as the alternate colour, not just the one that was clicked.
demo site is at: http://artbymichaelking.com/DS/work/
My CSS is:
--------------
#wnav a:link{
color: #aaaaaa;
text-decoration: none;
}
#wnav a:visited{
color: #aaaaaa;
text-decoration: none;
}
#wnav a:hover{
color: #254A75;
text-decoration: none;
}
#wnav a:active {
color: #eeeeee;
text-decoration: none;
}
#wnav .selected a{
color: #0055FF;
text-decoration: none;
}
----------------------
Is there a way to get this to work in WP?