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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textarea 2

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
Is there anyway to make a textarea 100%

[conehead]
 
There is:
Code:
<textarea style="width: 100%; height: 100%;"></textarea>
Standard rules with percentage values apply.
 
Sure there is...
Code:
<textarea style="width:100%;" name="txt1">Some text</textarea>
This shows 100% screen width (if I place it directly in the body) in both IE and FF in Windows. Placing the textarea in a container and setting that to an arbitrary width will mean that the textarea will be 100% of the arbitrary width (of it's containing block level element).

Are you having a specific problem with this that's throwing you?

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
no, The obvious things just never occur to me... :) I always use the cols attribute - never thought of using a style to size it...

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top