Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Added :hover style for :visited <a> elements #879

wants to merge 2 commits into from

3 participants


I didn't like how the :visited links turned blue when you hover over them, so i added a:visited:hover it's own color.


Doing this by default would force people to set their own :visited:hover styles to override this one. I suspect this would be a point of confusion and something most devs are not accustomed to doing regularly. Therefore, while this is something you might want to do on your own projects, it doesn't seem suitable to be included by default. Thanks.

@necolas necolas closed this

For some unkown reaseon, this is buggy in safari/crome and maybe others when using with jquery mobile.
a { color: #444; } is a generic setting and must be less applied than jquery mobile specific classes i.e .ui-btn-up-e { }

However html5boilerplate breaks them - any ideas?


Breaks what? I don't really understand the issue.


So what do you think? :)


This looks like a jQuery Mobile bug. It's going to occur in any site that sets hover and visited states on links. You might want to report the issue at that project. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 6, 2011
  1. Added :hover style for :visited <a> elements

    Marten authored
  2. Accidentaly edited out an 'a'

    Marten authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  css/style.css
1  css/style.css
@@ -53,6 +53,7 @@ body, button, input, select, textarea { font-family: sans-serif; color: #222; }
a { color: #00e; }
a:visited { color: #551a8b; }
+a:visited:hover { color: #901D96;}
a:hover { color: #06e; }
a:focus { outline: thin dotted; }
Something went wrong with that request. Please try again.