Styling Placeholders for Better Usability in CSS


Improve form usability with styled placeholders that guide the user.

Source Code

::-webkit-input-placeholder { /* Chrome/Edge/Safari */
    color: #909090;
    font-style: italic;
}
::-moz-placeholder { /* Firefox 19+ */
    color: #909090;
    font-style: italic;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #909090;
    font-style: italic;
}
:-moz-placeholder { /* Firefox 18- */
    color: #909090;
    font-style: italic;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments