WEB TUTORIALS
PRACTICE EXAMPLES
HTML REFERENCES
CSS REFERENCES
PHP REFERENCES
SPONSORED LINKS
Advertisements

How to disable resizable property of textarea using CSS

Topic: HTML / CSSPrev|Next

Answer: Use the CSS3 resize property

You can use the CSS3 resize property to remove or turn-off the default horizontal and vertical resizable property of the HTML <textarea> element. This property will also hide the resizing handle at the bottom-right corner of the textarea. Let's check out an example:

  • <!DOCTYPE html>
  • <html lang="en">
  • <head>
  • <meta charset="utf-8">
  • <title>CSS Disable Textarea Resizing</title>
  • <style>
  •     textarea {
  •         resize: none;
  •     }
  • </style>
  • </head>
  • <body>
  •     <textarea rows="5" cols="50"></textarea>
  • </body>
  • </html>

Related FAQ

Here are some more FAQ related to this topic:

Advertisements

Your Feedback:

We would love to hear from you, please drop us a line.