Posted By

Nettuts on 08/10/10


Tagged


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

colingardom
hmvrulz
ahmedalttai
takel
baczoni
petemcbride
qubestream


Remove Outline on Buttons in Firefox


 / Published in: CSS
 

  1. button::-moz-focus-inner { border: 0; }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Nettuts on August 10, 2010

You would think that, with the button element, outlines could be removed with button:focus { outline: 0;} --- but that doesn't work. The code above will do the trick.

Posted By: vagrantradio on February 2, 2011

Actually, this only works if you use the < button > element as opposed to input type="button".

You need to login to post a comment.