Sanchosrancho Sanchosrancho - 1 year ago 61
HTML Question

How to remove button outline in Opera on focus

Does anybody know how to remove the dotted outline on buttons in Opera?

Knu Knu
Answer Source

I have done it.

Here you go: http://jsbin.com/oniva4. [tested on Opera 10.5/11]

The secret is using outline-offset:-2px; (effectively covering the dots) and the background's color for the outline. outline-offset is supported since version 9.5.