Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting width of <textarea>

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
I am trying to make a form that has a combination of text boxes, drop downs and a scrolling text box.

Is there any way of setting the <textarea> width to 100% of the cell that it's in or can you only define it in terms of rows and cols.

Thanks very much

Ed
 
Code:
<textarea style="width: 100%;"></textarea>
Use CSS. It was designed to style elements and clearly supports the width for textarea.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top