Pregunta

Is it possible to text indent each line in a textarea? I'm using a handwritten font and the first letter on each line is getting cut off slightly. I've already used padding and margin, but this does not work.

Many thanks.

Erik

¿Fue útil?

Solución

Have you tried using \t? More details would be good are you programming this or are you typing it? You can also try alt codes if its the latter - Alt-012 is tab.

Edit I see your probably talking about the HTML input textarea. You might tag your question for HTML, though looking at it again it's fairly straight forward from the context.

Otros consejos

Don't know about \t but

style="padding-left: 4px;"

would definitely work for all the rows of a text-area.

in Chrome 69.0.3497.92, This gives indent only for the first line in textarea:

text-indent: 2em;
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top