disable textarea resize css code example

Example 1: prevent textarea resize css

textarea {
  resize: none;
}

Example 2: textarea resize off

<textarea class="myTextArea"></textarea>
<style>
  .myTextArea {
    resize: none;
  }
</style>

Example 3: Textarea disable resize CSS

to disable all

textarea { resize: none; }
only vertical resize

textarea { resize: vertical; }
only horizontal resize

textarea { resize: horizontal; } 
disable vertical and horizontal with limit

textarea { resize: horizontal; max-width: 400px; min-width: 200px; }
disable horizontal and vertical with limit

textarea { resize: vertical; max-height: 300px; min-height: 200px; }

Tags:

Html Example