css textarea resize code example
Example 1: prevent textarea resize css
textarea {
resize: none;
}
Example 2: disable textarea resize
textarea {
resize: none;
}
#foo {
resize: none;
}
Example 3: textarea only vertical resize
resize: vertical;
Example 4: textarea resize off
<textarea class="myTextArea"></textarea>
<style>
.myTextArea {
resize: none;
}
</style>
Example 5: textarea disable resize
<textarea style="resize: none;"></textarea>
Example 6: resize in css
resize: none;
resize: both;
resize: horizontal;
resize: vertical;
resize: block;
resize: inline;
resize: inherit;
resize: initial;
resize: unset;