Disable anchor dotted border

2010-01-16 @ 14:30

In Firefox, and maybe other browsers, there is a border around the anchor (link) element when it’s clicked. Sometimes it can be annoying, especially when using Javascript onclick function.

You can however get rid of this dotted anchor border by disable it in CSS.


This example will disable the dotted anchor border in every anchor (link) elements, as long as it’s not overwritten by other CSS code.

a:focus {
     outline: none;

The code is heavily inspired by CSS Hints.

RSS-feed for comments

6 replys to “Disable anchor dotted border”

Leave a reply