unstretchable textarea

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Monopoly
Forum Commoner
Posts: 41
Joined: Wed May 21, 2008 1:19 pm

unstretchable textarea

Post 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 ?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: unstretchable textarea

Post 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.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Re: unstretchable textarea

Post 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;.
Post Reply