Fix Mozilla button & submit element padding


/ Published in: CSS
Save to your folder(s)

Firefox has a padding issue with button and submit elements, this fixes it. Also, don\'t use line-height on buttons, use padding instead.


Copy this code and paste it in your HTML
  1. input[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner {
  2. padding:0;border:0 none;-moz-box-sizing:content-box;
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.