textarea resize based on the length code example
Example 1: textarea only vertical resize
resize: vertical;
Example 2: textarea resize off
<textarea class="myTextArea"></textarea>
<style>
.myTextArea {
resize: none;
}
</style>
resize: vertical;
<textarea class="myTextArea"></textarea>
<style>
.myTextArea {
resize: none;
}
</style>