This question has already been answered:

I apply this method:

* { outline: 0 !important; } 

Everything works in Chrome, but Firefox refuses to accept this code.

Reported as a duplicate by members of Vadim Ovchinnikov , Nick Volynkin ♦ Jan 5 '17 at 6:13 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    2 answers 2

    This problem may occur on input'ah. At the same time, blocks may also have an extra indent. Therefore, it will be safer to write this:

     // Remove border and padding in Firefox ::-moz-focus-outer, ::-moz-focus-inner { border: 0; padding: 0; } 
    • one
      And why padding? - Yuri
    • @Yuri I painted everything. - Vadizar

    like this

     button::-moz-focus-inner { border: 0; } 
    • Thank. Earned - Denisoed