Prevent a textarea from being resized

Yes, you can remove that option to resize the textarea. It’s pretty simple and you do it with CSS and the “resize” property.

textarea { height: 30px; width: 100%; resize: none; }

If you need it, the resize attribute can get other values:

  • both: Can be resized to the sides and up and down.
  • horizontal: can be resized horizontally
  • vertical: only resizes in the vertical
  • none: the one already commented that avoids the resize
See also  News on the Internet
Loading Facebook Comments ...
Loading Disqus Comments ...