how to style input placeholder css code example
Example 1: css style placeholder
input::-webkit-input-placeholder {
}
input::-ms-input-placeholder {
}
input:-ms-input-placeholder {
}
input::-moz-placeholder {
opacity: 1;
}
input:-moz-placeholder {
opacity: 1;
}
input::placeholder {
}
Example 2: placeholder css
::-webkit-input-placeholder {color: pink;}
::-moz-placeholder { color: pink;}
:-ms-input-placeholder { color: pink;}
:-moz-placeholder {color: pink;}
Example 3: placeholder color in css
*::-webkit-input-placeholder {
color: red;
}
*:-moz-placeholder {
color: red;
opacity: 1;
}
*::-moz-placeholder {
color: red;
opacity: 1;
}
*:-ms-input-placeholder {
color: red;
}
*::-ms-input-placeholder {
color: red;
}
*::placeholder {
color: red;
}
Example 4: css style placeholder
::placeholder {
}
:-ms-input-placeholder {
}