How do I remove the light color on the input to be selected in Chrome?

If you are using Chrome browser, click Run Code Snippet and you will see that there is a blue color in the input, I want to remove it.
I've tried border:none

both :active

and other pseudo class. But it didn't work.
By the way, in FF. There is no light color.

    <input type="text">
      

Run codeHide result


+3


source to share


1 answer


Just use this;

   input:focus{
        outline: 0;
    }

      



Or remove from all elements

*:focus {
    outline: 0;
}

      

+5


source







All Articles