Remove the dotted border around links in Firefox

Remove the dotted border around links in Firefox

1 Star2 Stars3 Stars4 Stars5 Stars
Posted on September 4, 2009

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;
 }
More tutorials from Papermashup
Comments
5 discussions around Remove the dotted border around links in Firefox
  1. you can use only

    outline: none;

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

  2. Shogun says:

    These details make a big difference, thank you!

  3. Michael T says:

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

  4. 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’.

    • 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. :)

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>

Looking for a registry cleaner to speed up your PC and show a full diagnostics?
Faster surfing with Dish Network High Speed Internet

Never miss an update from Papermashup

Get notified about the latest tutorials and downloads.

Subscribe by Email

Get alerts directly into your inbox after each post and stay updated.
Subscribe
OR

Subscribe by RSS

Add our RSS to your feedreader to get regular updates from us.
Subscribe

Get in contact

Please use the form below to get in touch.

About Me

I'm Ashley Ford, Co-founder and Technical Director at Harkable.com London, UK. Previously I worked at InMobi, Spotify and MySpace. My interests include photography and making short videos I'm also an avid F1 fan. I'm always working on side projects. Here are a few: Easy Poll, We Deliver.



What do you specialise in?

I spend a lot of time coding in PHP and MySQL, as well as front end XHTML and CSS. I also specialise in javascript and the jQuery framework as well as being an avid designer. You can find me on dribbble

Interested in advertising?

If you'd like to advertise on Papermashup.com you can find details here Or use the contact link below for further advertising opportunities.

How do I contact you

You can contact me here. and I'm available for consultation, freelance, programming book reviews.

Get on the mailing list

Join over 3000 people who have subscribed to the Papermashup inbox message, and be the first to find out about tutorial, competitions and giveaways.