Category: CSS

CSS Tricks

CSS Tricks

To change autofill input text color and background: /* Change the defaul browser colors */ input::placeholder {   color: red;   font-size: 1.2em; font-style: italic; } input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active{ -webkit-box-shadow: 0 0 0 30px #151515 inset !important; -webkit-text-fill-color: #ffffff !important; } To place a div (with position:absolute;) element in the center of container (with position:relative;): #container {…

Read More Read More