SitePoint
Reference
CSS
Selector Reference
Pseudo-classes
:hover
CSS Live Demo: :hover
(this page)
See also:
All Live Demos
CSS Live Demo: :hover
Type your
CSS
here:
(any properties allowed except expression, behavior and @import)
a:hover { color:#cccccc; }
Type your
HTML
here:
(any tags allowed except script, iframe, frame, object, img and embed)
<ul> <li><a href="http://www.sitepoint.com/">www.sitepoint.com</a></li> <li><a href="http://www.bbc.co.uk/">www.bbc.co.uk</a></li> <li><a href="http://www.news.com.au/">www.news.com.au</a></li> </ul> <p> The <code>:hover</code> pseudo-class will apply to elements in their hover state (<abbr title="for example">eg.</abbr> when moving the mouse over the link). </p>
Show me!
Your results appear here: