Page 1 of 1

unstretchable textarea

Posted: Sat Jul 19, 2008 2:58 am
by Monopoly
Hello

Is is it possible to create an unstretchable textarea (example with a definite max. width) that wouldn't stretch when users press and hold a certain key ?

Re: unstretchable textarea

Posted: Sat Jul 19, 2008 1:05 pm
by califdon
Monopoly wrote:Hello

Is is it possible to create an unstretchable textarea (example with a definite max. width) that wouldn't stretch when users press and hold a certain key ?
You can specify the cols and rows properties. As far as I know, the user can't change those, although I believe scroll bars will appear if the user attempts to enter more data than the textarea can display.

Re: unstretchable textarea

Posted: Mon Jul 21, 2008 1:47 pm
by JAB Creations
Stretch? The size won't change save for in Webkit if you use a (currently) proprietary CSS property.

Perhaps you're referencing overflow and the scrollbar? In which case you'd set overflow: hidden;.