In Chrome, my design has a light border or outline along the edges of the search input field. How can I get rid of this?
This snippet worked for me:
input:focus {
box-shadow: none;
}
Hey, it is easy to remove outline. Just set none
to input field's outline
property in css.
For e.g.
form input[type=text]:focus, form input[type=password]:focus, textarea:focus {
outline: none;
}
Above will remove outline border in chrome and safari browsers on form element focus.
input, select {
outline: none;
}
This will disable the browser outline for all regular form elements.
If you mean the blue "glow", add this CSS:
outline: none;
form#search input[type="search"] {
-webkit-appearance: none;
}
Mind that this will disable the select element arrow.