I'm trying to change the color of item link in notification list after user clicked it. Here's my css code:

.ms-vb a:link {
  color: blue;

.ms-vb a:visited {
    color: red;

The first part worked perfectly, all the links indeed changed to blue. But after I clicked the link, the color of link remained blue, which is supposed to changed to red.

So, what's the proper way to set up a css to change the color of visited link in notification list?

  • Did you try the !important tag? color: red !important;
    – Marco
    May 29, 2015 at 20:36
  • @Marco, I tried, it did not work.
    – SSilicon
    Jun 1, 2015 at 13:19
  • just as a comment many of the link in SharePoint are not an "a" tag they are "span" into an "a" tag, so check that and try to change the color for the inner tag.
    – Marco
    Jun 1, 2015 at 13:57

1 Answer 1


I believe a:visited is not supported because of security reason.

It is possible to retrieve a visitor's history by checking for visited links, certain measures have been taken to prevent this.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.