change Placeholder text color by CSS class

Going to use Inquiry Form with background color match to Inout field placeholder text and Placeholder text not visible to your visitor when they visit site and fill up form. using below css class attribute you can change input field placeholder text color according your need.




.ptcgreen::-webkit-input-placeholder {
    color: green;
}
.ptcgreen:-moz-placeholder {
    color: green;

}
.ptcgreen::-moz-placeholder {
    color: green;

}
:-ms-input-placeholder {
    color: green;

}
::-webkit-input-placeholder {
    color: red;
}
.box:-moz-placeholder {
    color: red;

}
::-moz-placeholder {
    color: red;

}
:-ms-input-placeholder {
    color: red;

}
Scroll to Top