Text style inside textarea

I work in this form, which has this design:

enter image description here

I'm at this stage right now, so I'm working on small details: enter image description here

Because you can see that "Your text ..." is attached to the upper left corner of the text box. I am trying to find a way to manipulate this with CSS, if possible. I just need to apply some marker / padding to the text inside the text box. If this is not possible with CSS, I am open to suggestions.

How to manipulate through CSS text inside a text box ???

+4
source share
5 answers

You can use the CSS padding property:

 textarea { padding: 5px; } 
+16
source
 textarea { padding: 5px; box-sizing: border-box; } 

NOTE. Window size is a CSS3 property. This is very useful because without it, the width: 100% or the other will not work as you expected.

+15
source

You can use CSS to create the desired effect.

 textarea { padding : 20px; margin : 10px; } 

http://jsfiddle.net/SSY9y/

+3
source

Yes, the addition from CSS applied to textarea is correct. But then you need to change the "rows" and "cols", as the dimensions of the entire text field change.

Thanks!

Dani

0
source

You can use the following code:

 line-height: _px; 

enter the same text box height.

0
source

All Articles