css change input place holder text color 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 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;
}