views:

55

answers:

2

Hello guys, i have a web form that when i see from Chrome it makes a yellow highlight on the text fields and i dont like it. I eliminate the border highlight with outline: none; but when i go back to my form and Chrome autocomplete the fields it makes the fields background yellow, and that is not good for my theme. This is an example of the autocomplete that changes the background from my original transparent to yellow:

alt text

What can i do?

+1  A: 

Hi Domingo,

Check out this similar question on StackOverflow: http://stackoverflow.com/questions/2920306/google-chrome-form-autofill-and-its-yellow-background

The short answer is that there is no way to do this. Browser and user preferences and security concerns override site design. Consider that your visitors with autofill enabled are probably used to seeing yellow in form fields, so the current behavior is consistent with their expectations.

KatieK
+2  A: 

As far as I know there is no real good solution out there at the moment since this style is marked as !important by Chrome. A known workaround means to disable autocomplete like this:

<form autocomplete="off">
 <input type="text" name="fieldname" />
</form>

There are several issues raised in the chromium google code project where you could vote on but this issue seems to be a never ending story (first issue was started in 2008):

codescape