Remove the dotted border around links in Firefox

Remove the dotted border around links in Firefox

Here’s a quick CSS tip. Firefox likes to put a dotted border around any links that you click as shown below, but there’s an easy way to fix it simply add the code below to your ‘a tag’ style either in the head of the page on in an external style sheet.

Firefox Css Dotted Lines on links

a{ outline: none;
    -moz-outline-style: none;
 }

This entry was posted in CSS, Design, Web Tools and tagged , , . Bookmark the permalink.
Comments
5 discussions around Remove the dotted border around links in Firefox
  1. libeco says:

    From a usability perspective: don’t use this! If people like to use their keyboard to navigate through your site, you’ve just succesfully removed their visual hint of which link is currently ‘active’ and ready to be ‘clicked’.

  2. Ashley says:

    @libeco thanks for the comment, I totally understand where your coming from, however its a small percentage of users that are going to be browsing your site with just their keyboard, plus this is specific to Firefox which still has a small browser market share, all other browsers don’t have this problem / feature. :)

  3. Michael T says:

    i’ve been using a:focus { outline: none; } in the sties i’m doing.

  4. Shogun says:

    These details make a big difference, thank you!

  5. you can use only

    outline: none;

    instead of mozilla’s property. Firefox understands “outline” too

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribers
1,250
Twitter
510
Comments
1,207
Posts
125