It is possible to remove the extra Firefox-specific spacing from <button>
tags. The only drawback is that the outline will be missing when you focus to the button on your keyboard.
I would very much like to make my buttons consistent across Chrome, IE8, Firefox. If I could use a CSS :hover
, I could easily show the button as focused using the same style that removes that Firefox spacing and outline.
Is there any way to do this without JavaScript? I do not care if other browsers ignore the rule. In fact I would prefer a :-moz-focused
if there is such a thing so I can be sure that it won't happen in the other browsers.
Also, if a Chrome style outer glow could be accomplished in Firefox, that would be twice as good.