Styling The Placeholder Pseudo-Element in CSS


Change the default style of placeholder text in input fields.

Source Code

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: pink;
}
::-moz-placeholder { /* Firefox 19+ */
    color: pink;
}
:-ms-input-placeholder { /* IE 10+ */
    color: pink;
}
:-moz-placeholder { /* Firefox 18- */
    color: pink;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments