Page 1 of 1

textarea question

Posted: Thu May 22, 2003 11:02 pm
by Sevengraff
How can I control the height and width of a <textarea> using CSS?

Posted: Fri May 23, 2003 3:40 am
by patrikG
rows= and cols=
which are relative to the font and font-size you are using.

There is no other way.

Posted: Fri May 23, 2003 8:58 am
by Friday
use CSS also :)

<textarea style="width:*;height:*"><textarea>

Posted: Fri May 23, 2003 3:02 pm
by Sevengraff
thanks, i found specifiying width & height in px to work the best.

<stlye>
textarea {
width: 250px;
height: 250px;
}
</style>