views:

120

answers:

2

I want to be able to create a text area that fills an available space.

However because of the different monitor resolutions I don't think I can simple specify a character width. Is there anyway of getting around this without having too much logic to specify different character widths for each set of monitor resolutions.

+4  A: 

The answer is to simple set

style="width: 100%"

instead of

cols="XX"
Ankur
how does this take care of height?
Scott Evernden
The cols and rows attributes are still needed for standards compliance.
@Scott, the div doesnt't have a height, so I used an appropriate value or my situation.
Ankur
+1  A: 
<textarea style='width:100%; height:100%'>type here</textarea>
Scott Evernden