I have design problem with Google Chrome and its form autofill function. If Chrome remembers some login/password it changes a background color to a yellow one.
Here are some screenshots:
How to remove that background or just disable this autofill ?
Adding
autocomplete="off"
is not gonna cut it.Change input type attribute to
type="search"
.Google doesn't apply auto-fill to inputs with a type of search.
Hope this saves you some time.
Worked for me, only the css change required.
you can put any color in place of #ffffff.
The following CSS removes the yellow background color and replaces it with a background color of your choosing. It doesn't disable auto-fill and it requires no jQuery or Javascript hacks.
Solution copied from: Override browser form-filling and input highlighting with HTML/CSS
The only way that works for me was:(jQuery required)