Home  »  CodeSnippets   »   Removing Default Background Color of HTML Input

Removing Default Background Color of HTML Input

Posted: February 7, 2022 | by Michael Bright

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.