Remove background color from input in autocomplete

1

Something that makes me very uncomfortable is when the google browser autocompletes something and leaves the input with a yellow background, how can I remove it?

    
asked by anonymous 19.01.2017 / 14:03

1 answer

2

This is a bit tricky, but it should solve your problem:)

/* Trocar para branco qualquer cor */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}
    
19.01.2017 / 14:30