How to set placeholder value using CSS?

You can do this for webkit:

#text2::-webkit-input-placeholder::before {
  color:#666;
  content:"Line 1\A Line 2\A Line 3\A";
}

http://jsfiddle.net/Z3tFG/1/

Leave a Comment