I'm using this jfiddle. In chrome when I click the image it doesn't produce a dotted line but when I click the image in firefox a dotted line appears.
.
How can I remove the dotted line?
I've tried:
#myButton:focus {
outline: 0;
}
#myButton:active {
outline: none;
border: none;
}
But that didn't work.
Try this:
button
can be replaced with whatever selector for which you want to disable the behavior.P.S: It also works without a selector by just using
::-moz-focus-inner
.JSFiddle Demo