I have tried the following with no luck:
a:visited
{
font-weight: bold;
}
EDIT: Removed the space after the ":", but it still doesn't work.
Ah — I believe this won’t work in recent browsers, because they disabled most styles for visited links to prevent websites from detecting the user’s web browsing history:
For example, in Chrome 15, the visited link on this fiddle has a different colour, but is not bold:
Looks like Firefox added this in version 4:
Get rid of the space:
a:visited {
font-weight: bold;
}
The reason it didn't work before is because space is a descendent selector: http://www.w3.org/TR/CSS2/selector.html#descendant-selectors
A descendant selector is made up of two or more selectors separated by white space. A descendant selector of the form "A B" matches when an element B is an arbitrary descendant of some ancestor element A.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With