How to remove border around a linked image using CSS

Before CSS to remove the border around a hyperlinked image, the attribute setting: border="0" would be used.

The following CSS can be used to give the same effect, which is now the preferred way of removing the border:

:link img{
  border: none;

Last updated: 14/11/2011