1. Home
  2. Computing & Technology
  3. Web Design / HTML

:hover

By Jennifer Kyrnin, About.com

:hover Description:

The :hover pseudo-class matches elements as you mouse over them.

:hover Web Browser Support:

:hover in CSS Versions:

:hover Examples:

Set the hover color of all elements on a page

<style>
:hover { color: #f00; }
</style>

:hover Special Notes:

  • Most browsers only support this pseudo-class on the a element.

More :hover Information:

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. CSS Pseudo Properties
  6. The :hover Pseudo-Class - CSS 1 XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.