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
  • 28,982
  • 82
  • 233
  • 406

1 Answers1

1

a click is not :focus, but :active

in generally, you can do:

* {
    outline: none; 
}
Rami.Q
  • 2,436
  • 2
  • 18
  • 29