How to insert line break in placeholder in text area field?
Dette spørgsmål er blevet anmeldt
I am surprised no one came up with a working solution in the last 9 years.
You can simply add & # 1 0 ; (without spaces) to your placeholder text, browser will register it as line feed.
Is it possible ?? ;) Have you tried \n \r ?
yes tried that didn't work.
Only by formatting with multiple spaces, e.g.:
1st line of placeholder starts here 2nd starts here etc
If the size of textarea is fixed, browsers will show such long texts as if they were on multiple lines.
You'll have to fine-tune the number of spaces to make placeholder text look as you like.
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
|
1
jan. 24
|
18181 | ||
|
|
3
maj 15
|
5139 | ||
|
|
1
jul. 16
|
6047 | ||
|
|
0
jul. 16
|
7208 | ||
|
|
1
dec. 15
|
5436 |
Hello ,
You get any solution because i am facing similar problem.