Richard Rodgers
Richard Rodgers

Reputation: 625

Search type input field - How to remove highlight color from previous search

So, basically. I have a search type input field. This is a searchbox, when you double click the input box you can see all your previous searched keywords and when you select or hover over a keyword the background changes color from white to yellow. Like shown in the screenshot below.

enter image description here

I would like to disable this highlight color.

Upvotes: 1

Views: 1396

Answers (2)

fitch
fitch

Reputation: 1104

I think you could use this few lines in your CSS :

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}

And to change the text color :

-webkit-text-fill-color: yellow !important;

Upvotes: 4

Caleb O'Leary
Caleb O'Leary

Reputation: 763

I think this is google auto-complete, check out the top answer in this post Removing input background colour for Chrome autocomplete?

Upvotes: 0

Related Questions