// Tutorials / Hover effects on links in CSS

Posted The: 29/06/2008 - AT: 20:35

Edited The: 08/09/2008 - AT: 18:24

This tutorial covers how to make hover effects on your links using the CSS pseudo-classes.

The Pseudo-classes

  1. link
  2. visited
  3. hover
  4. active

When using these classes, keep in mind that for them to work, you need to place them in the oder they are listet.

Example

The following example will apply a basic hover effect to all of your links, and links that are hovered wil be red.

a:link { color: blue; }
a:visited { color: purple; }
a:active { color: yellow; }
a:hover { color: red; }

Note. You can also apply other styles, like text-decoration, check the CSS Reference for more properties to use. As for colors, its recommended to read the color reference.

Stumble It!

Author: BlueBoden

Comments: [0]

  1. HTML Tutorial
  2. CSS Tutorial
  3. XHTML Tutorial
  4. RSS Tutorial
  5. PHP Tutorial
  6. htaccess Tutorial
  7. Server Tutorial
  8. SEO Tutorial

Checked At:06:03

5 Guests

0 Users

Online doing the past 15 Minutes!

PageRanking.dk - Flere hits og højere PageRank - GRATIS tilmelding!

This page was created in 0.0717468261719 seconds

Welcome Guest