25

I have a site with a textarea that is a very specific size; resizing it could make the user think that they can enter more text into the textarea than is possible (it is limited by rows and columns). Firefox 4 automatically shows a 'resize handle' in the bottom-right of the textbox and as a user I can resize the textarea on the page. Is there any way to disable this?

Thanks.

Jon Onstott
  • 13,499
  • 16
  • 80
  • 133
  • Possible duplicate of [How to disable resizable property of textarea?](http://stackoverflow.com/questions/5235142/how-to-disable-resizable-property-of-textarea) – JHoffmann Feb 17 '17 at 11:11

2 Answers2

49

Use CSS and style it with:

textarea {
    resize: none;
}
Volker E.
  • 5,911
  • 11
  • 47
  • 64
robx
  • 3,093
  • 2
  • 26
  • 29
3

Sometimes the CSS will not work. I have successfully removed the users ability to resize the textbox by using an inline style. Those are the last ones processed by the browser and have the final say on what style is used.

Anomarj
  • 39
  • 1