Stefanmelz of slashworks
6/14/2017 - 8:26 AM

Define input fields' placeholder color in most browsers. The declaration with the different vendor prefixes has to be done separately. Other

Define input fields' placeholder color in most browsers. The declaration with the different vendor prefixes has to be done separately. Otherwise they will not work.

:-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #777;
}

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

:-ms-input-placeholder { /* IE 10+ */
  color: #777;
}

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

/*
This will not work:

::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder,
:-moz-placeholder {
  color: #777;
}
*/