-1

On many of my input boxes I have a yellow outline that pops up when I select the box. How do I get rid of this?

enter image description here

Css lint are informing me that:

*:focus {
outline: none;
}

Should not be used and I quote. outlines should not be hidden unless other visual changes are made

When I try:

input:focus,
select:focus,
textarea:focus,
button:focus {
outline: none;
}

I also get a lint error message but appears to have worked.

Stackk15
  • 29
  • 1
  • 6

1 Answers1

0

Override CSS default outline property.

input {
   outline: none;
}
Ajay Varghese
  • 741
  • 4
  • 14