Sunday, August 18, 2013

How to Style Placeholder Text in Inputs

Here full CSS code to style placeholder text in inputs, here all vendor prefix of placeholder property.

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

:-moz-placeholder { /* Firefox 18- */
color: red;
}

::-moz-placeholder { /* Firefox 19+ */
color: red;
}

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