How to make the background white when I select saved logins on the login page [duplicate]

1

Good evening guys!

I have a question that I can not resolve on my own.

On my login screen, when I type the login, the input background continues the way I stylized it. But when I select a login that was saved, the input background returns to its default style.

This first image is the way I type the login, without selecting the option that the browser gives me.

Inthissecondimage,itistheformthatstayswhenIselecttheoptionthatthebrowsergivesme

I would like to know, how do I get this defect to stay the way I styled it.

    
asked by anonymous 14.12.2018 / 00:32

1 answer

1

All right, my dear? So, this is a pattern that indicates that the text was selected using autocomplete, but to "tap" this default color and leave it 'invisible', create a class for your input, eg:

<input type="text" name="user" class="meu_input">

Call the input in the CSS using the class you created, then just paste this line here, it should solve your problem, eg:

.meu_input{
    -webkit-box-shadow: 0 0 0px 1000px white inset;
}

I hope to have helped, Hugs!

    
15.12.2018 / 05:30