This question already has an answer here:
Can anyone explain how to remove the orange or blue border (outline) around text/input boxes? I think it only happens on Chrome to show that the input box is active. Here's the input CSS I'm using:
input {
background-color: transparent;
border: 0px solid;
height: 20px;
width: 160px;
color: #CCC;
}
Solution
PS: Use
outline:0
instead ofoutline:none
on focus. It's valid and better practice.Set
"!important" is just in case. That's not necessary. [And now it's gone. –Ed.]
The current answer didn't work for me with Bootstrap 3.1.1. Here's what I had to override:
This will definitely work. Orange outline will not show anymore.. Common for all tags:
Specific to some tag, ex: input tag
Worked well for me. Wished to have it fixed in html itself ... :)