Stylize autocomplete background

0

The input background is transparent, but when the browser automatically completes, it gets that color shown in the second image, is there any way to leave it complete, but still transparent? I've tried it in many ways, but none of it works.

    
asked by anonymous 02.06.2017 / 03:51

1 answer

1

I made some tests with the name transparent and if you assign this value it will always be with this default browser color. The most recommended is you put the background color in your case, I believe black .

input:-webkit-autofill {
    -webkit-box-shadow:0 0 0 50px black inset; /* aqui muda sua cor do fundo */
    -webkit-text-fill-color: #ccc; /* Cor do texto */
}
    
02.06.2017 / 04:13