This website requires JavaScript.

January 1, 2021

Style Placeholder Text

Style placeholder text
Copy
css
/* Style placeholder text */

::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: red;
}
::-moz-placeholder {
  /* Firefox 19+ */
  color: red;
}
:-ms-input-placeholder {
  /* IE 10+ */
  color: red;
}
:-moz-placeholder {
  /* Firefox 18- */
  color: red;
}

Further reading