Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eliminate the yellow highlight that Chrome do in the textfiels on html forms [duplicate]

Possible Duplicate:
How do I stop Chrome from yellowing my site's input boxes?

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 http://img716.imageshack.us/img716/2231/yellowmal.png

What can i do?

like image 297
DomingoSL Avatar asked Jun 18 '10 16:06

DomingoSL


People also ask

How do I turn off auto highlight in Chrome?

It is pretty straightforward- go to accessibility settings and turn off the “Show a quick highlight on the focused object” option, and the features will be disabled for you.

What does yellow highlight mean in editing?

2. Deleted text is highlighted in red and formatted as strikethrough (strikethrough). 3. Comments to the author are highlighted in yellow.

How do I copy a highlighted link in Chrome?

Google lets you select a word, sentence or paragraph from a web page then right-click and select “copy link to highlight”. Now when you share the link, the same web page will open but that specific text will be highlighted.


1 Answers

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):

  • Auto-filled input text box yellow background highlight cannot be turned off!
  • Auto-filled input text box yellow background highlight cannot be turned off!
like image 85
stefanglase Avatar answered Apr 28 '23 00:04

stefanglase