/ Published in: CSS
CSS3 Normalize for Required and Placeholder...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* non-style for "Required" inputs in Firefox, Chrome and Opera */ input:required, textarea:required { -moz-box-shadow:none; -webkit-box-shadow:none; -o-box-shadow:none; box-shadow:none; outline:none 0; } /* Styling "Placeholder" input in Chrome and Safari */ ::-webkit-input-placeholder { color:#333; font-style:italic;} /* Styling "Placeholder" input in Firefox */ input:-moz-placeholder, textarea:-moz-placeholder { color:#333; font-style:italic; }