CSS

Customising The Textarea Element

When you add a textarea to your webpage it will allow the webpage visitor access to resize the textarea to any size they want horizontal and vertical. In chrome you are only able to resize the textarea on the vertical.

There is a CSS property that allows you to control how the user can resize textareas.

resize: both;
resize: horizontal;
resize: vertical;
resize: none;

Resize Both

<textarea style="resize: both;">
Resize the textarea both horizontal and vertical
</textarea>

Resize Horizontal

<textarea style="resize: horizontal;">
Resize horizontal
</textarea>

Resize Vertical

<textarea style="resize: vertical;">
Resize vertical
</textarea>

Resize None

<textarea style="resize: none;">
No resizing
</textarea>
Back to top ^

Leave a Reply

Your email address will not be published. Required fields are marked *

Join Paulund

  • Access 100s of premium tutorials and downloadable content
  • Members content consists of premium WordPress plugins, CSS packages, jQuery packages, tutorial demo files and templates for 100s of web development tutorials
  • In-depth development tutorials
  • Priority tutorial requests
  • No ads

Join Paulund