Style placeholder text


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /*
  2.  * Andrew Wayne 2010
  3.  * Change the color to whatever you want. They must be separate ie. cannot put it as one style
  4.  * together, otherwise it will not render
  5. */
  6. ::-webkit-input-placeholder {
  7. color: #999;
  8. }
  9.  
  10. :-moz-placeholder {
  11. color: #999;
  12. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.