Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Word-wrap of Label text in text-area

I want to re-size the label of a text-area in format shown in the picture.I"m trying to do worp using paragraph tag but it is not happening..

my code....

 <label for="qual">This is the format i want the text-area to be displayed:</label>  
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <textarea id="qual" rows="5" cols="50" style="resize:none" placeholder="Description and Qualification"></textarea><br><br>

Desired Output..

photo png image

like image 373
Lucy Avatar asked May 17 '13 11:05

Lucy


People also ask

What is wrap in textarea?

The wrap attribute specifies how the text in a text area is to be wrapped when submitted in a form.

Is there a way to wrap text in word?

Go to Picture Format or Shape Format and select Arrange > Wrap Text. If the window is wide enough, Word displays Wrap Text directly on the Picture Format tab. Choose the wrapping options that you want to apply. For example, In Line with Text, Top and Bottom, and Behind Text.


1 Answers

style="max-width: 140px; word-wrap: break-word"

place this in your label tag and adjust the max-width or min-width to your needs. heads up doesn't work in IE

like image 60
GertV Avatar answered Sep 21 '22 15:09

GertV