Guillermo Esteves's profile picture

Guillermo Esteves

Styling placeholder text in a form input

If you’re using the placeholder attribute in a form input element, and want to change how the placeholder text looks using CSS, use the -webkit-input-placeholder pseudo-element, like so:

::-webkit-input-placeholder {

The placeholder attribute works in the latest Firefox nightly, but if there’s a -moz extension to style it, I sure as hell can’t find it.