i have some links that are surrended by some borders. on hover, the links are made white. my code:
#product_unavailable_types a:hover {
border-color: #fff;
}
i would like that those borders will remain white after the selection also. i mean, if i click on that link, the borders will stay with the above style. and i have no idea how to do it.
any clue?
thank you!
You are searching for the
a:visitedpseudo class.That means:
EDIT
If the link doesn’t lead you to another page, try to put this in the
headelement:Then, add the
onclickattribute to youraelement, so that it looks like: