Jump to content

textarea resize (Solved)


Recommended Posts

Hey all, Really simple question, Not sure if its a simple answer,How do i disable <textarea> resize option?I tried to use onresize/onresizestart/onresizened functions and return some false value so these events will be ignored, but no luck,Any ideas?

Edited by Illasera
Link to post
Share on other sites
Textareas don't resize in any of the browsers I know. The "onresize" event is exclusive to the window object.
They are resizable on safari by default.I can even resize them in here while am posing :)Guess message posting is also a textarea :) Edited by Illasera
Link to post
Share on other sites

That's strange. Well. That's a browser feature which possibly can't be disabled.Have you tried assigning a fixed width and height with CSS?

Link to post
Share on other sites

The resize CSS property is native to CSS3, and is currently turned on by default for textareas in Webkit. Setting it to none will disable resizing.

Link to post
Share on other sites
The resize CSS property is native to CSS3, and is currently turned on by default for textareas in Webkit. Setting it to none will disable resizing.
Ah that feels better!4th help in a row or maybe 5th synook, I feel like i should be paying you :)CSS file
textarea{	resize:none;	overflow:auto; // IE tends to add scroller by default as well.}

Edited by Illasera
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...