Autofill background color turn to white - How to change this?

I created a contact form on my portfolio page. When autofill is used background color turns to white. How to change transparent color?

Did you find any solution for this? I have the same problem/question :slight_smile:

In the page that is your form, put this code “before tag” place.
Important: this code is not removing or changing the autofill background, it’s there but it will need 5000 seconds to appears. The feeling is that it is transparent.

<style>
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
  transition: background-color 5000s;
  -webkit-text-fill-color: #fff !important;
}
</style>

In this case I use the white text color in this form, if in your case is different, you can change the webkit-text-fill-color: #fff to another one in hex code that you want

1 Like