0

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?

3
  • Did you try the !important tag? color: red !important; Commented May 29, 2015 at 20:36
  • @Marco, I tried, it did not work. Commented 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. Commented Jun 1, 2015 at 13:57

1 Answer 1

0

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.

https://stackoverflow.com/questions/1210871/use-jquery-to-select-visited-links

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.