How do i remove the blue outline from a radio box when focused?

The301 picture The301 · Apr 13, 2016 · Viewed 11.8k times · Source

I would like to remove the blue outline it gives me when my radio is clicked/focused. I tried using outline: none and border: none, but nothing seems to be working. Does anyone have a solution for this?

Screenshot of what I’m talking about:

Image

Answer

Wowsk picture Wowsk · Apr 13, 2016

Remove the outline when the input element has the focus.

input:focus{
  outline:none;
}

As a side note, this is only for Google Chrome, other browsers use different techniques for showing an input element has the focus.