0

I have applied the below code for my placeholder color to change to white but some how its not working on chrome and chromium v 37.0.X. it works perfectly in firefox.

::-webkit-input-placeholder {
color: #ffffff;
}
::-moz-placeholder { /* Firefox 19+ */
color: #ffffff;
}
:-ms-input-placeholder {
color: #ffffff;
}
:-moz-placeholder { /* Firefox 18- */
color: #ffffff;
}
Harshada Chavan
  • 526
  • 3
  • 13
  • Possible duplicate of [Change an input's HTML5 placeholder color with CSS](http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css) – om_jaipur Nov 02 '15 at 07:28

2 Answers2

2

Use this,

::-webkit-input-placeholder {
  color: #565656;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #565656;
}
:-ms-input-placeholder {
  color: #565656;
}
:-moz-placeholder { /* Firefox 18- */
  color: #565656;
}
WP Learner
  • 788
  • 1
  • 13
  • 34
1

Please refer to this link Change an HTML5 input's placeholder color with CSS

There are a few useful answers here.

Community
  • 1
  • 1
oneNiceFriend
  • 6,691
  • 7
  • 29
  • 39