0

I have tried this in the CSS:

*:focus {
    outline: 0;
}

However it seems not to work in all cases. The only sure way I was able to do this was to set the outline: 0; as an inline style on a button.

Is there something I am missing?

How can I set this globally in a CSS?

Samantha J T Star
  • 30,952
  • 84
  • 245
  • 427

1 Answers1

1

a click is not :focus, but :active

in generally, you can do:

* {
    outline: none; 
}
Rami.Q
  • 2,486
  • 2
  • 19
  • 30