Changing link colours

Posted under » CSS on 24 February 2010

The default a href colour is blue. However, most people define their own colours like so

A:link {text-decoration: none; color: #000099}
A:visited {text-decoration: none; color: #000099}
A:active {text-decoration: none}
A:hover {text-decoration: underline; color: red;}

This will apply to all links. However, if you want a certain link to be of different colour, we normally add a class.

This click here rocks.

This will not work. The correct way to change the link to white is

This click here rocks.

Sounds simple but often I made this error.

web security linux ubuntu GIT svn Raspberry apache mysql php drupal cake symfony javascript Ajax css