I would like to know how to change the placeholder color of specific inputs. Example:
input{
display:block;
margin-bottom:5px;
width:200px;
}
::-webkit-input-placeholder { /* WebKit, Blink, Edge */
color: red;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: red;
opacity: 1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: red;
opacity: 1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
color: red;
}
::-ms-input-placeholder { /* Microsoft Edge */
color: red;
}
<input type="text" placeholder = "Esse na cor que eu desejar">
<input type="text" placeholder = "Esse na cor padrão">
Why am I asking? Because I have a page where I style the placeholder as in the example CSS code, however my registration / profile forms also get this style. Example:
In this part I would like the placeholder to be darker.
Andinthathewasnormal.