The opposite :hover looks like :link .
(edit: not technically the other way around, because there are 4 selectors :link :visited :hover and :active . Five if you turned on :focus .)
For example, when defining a .button:hover{ text-decoration:none } rule to remove an underline from a button, an underline appears when you roll back the button in some browsers. I fixed it with .button:hover, .button:link{ text-decoration:none }
This, of course, only works for elements that are actually links (have the href attribute)
scripter Jul 07 '15 at 2:42 2015-07-07 02:42
source share