Page 1 of 1

Trivial textarea problem

Posted: Thu Nov 06, 2003 1:49 pm
by wjabrams
I know this is trivial question? I just can't get seem to get a <textarea> box to increase in size. It is not in a php block but it is on a php page. Looks something like

<textarea name="comments" rows=5 columns=40>Comments:</textarea>

The width of the box doesn't change no matter what I put for "columns."

Posted: Thu Nov 06, 2003 1:58 pm
by JayBird
nearly right mate

try this

Code: Select all

<textarea name="textarea" cols="40" rows="5">Comments:</textarea>
Mark

Posted: Fri Nov 07, 2003 4:57 am
by twigletmac
Yup, <textarea> doesn't have a columns attribute, but it does have a cols one.

Mac

Posted: Sat Nov 08, 2003 10:10 am
by McGruff
Or <textarea style="width: 200px; height: 200px; overflow: auto;">

Posted: Sat Nov 08, 2003 3:05 pm
by twigletmac
And as McGruff has posted, CSS is even better...

Mac

Posted: Tue Nov 11, 2003 10:41 pm
by gavinbsocom
also a rows one to