Notice: The devs are no longer actively involved in the forum, so any bug reports regarding the Stylish extension or this website should be sent to them directly at contact@userstyles.org.

Option for visited links

I wanted a method of setting the visited links. So I tried Stylish but that didn't have an option for links. Is there such an option?

Comments

  • Yes, there is!

    You can simpily add :visited to the end of an links element.

    So for example if I had an 'link element' and I wanted it to change color to red when visitited my code would look like

    a.hyperlink {
    color: black;
    }

    a.hyperlink:visited {
    color: red;
    }

  • For all selectors and such I would really recommend visiting this website

    https://www.w3schools.com/CSSref/css_selectors.asp
  • edited January 16 [?]
    a:visited,
    a:visited * {
    color: red !important;
    }
    Write a new style, paste, name and save.
Sign In or Register to comment.