I have tried a few approaches but none worked. Does anyone know a the nifty trick to get around this?
<textarea placeholder='This is a line \n this should be a new line'></textarea>
<textarea placeholder='This is a line
should this be a new line?'></textarea> <!-- this works in chrome apparently -->
UPDATE: It doesn’t work in chrome. It was just the textarea width.
What you could do is add the text as
value, which respects the line break\n.Then you could remove it on
focusand apply it back (if empty) onblur. Something like thisExample: http://jsfiddle.net/airandfingers/pdXRx/247/
Not pure CSS and not clean but does the trick.