How can I disable the resizable area of a textbox?

1

I'm not an enthusiast of front-end languages, but in one of the examples I was testing, I was left wondering how to disable the resizable property of a text area.

I know I can resize a text area by clicking its bottom corner and dragging with the mouse, but I do not want to allow it.

The question is, how can I disable it?

    
asked by anonymous 25.10.2017 / 20:50

2 answers

4

Hello, you can do this through css:

<textarea style="resize:none" name="name"></textarea>

Or something like:

textarea {
  resize: none;
}
    
25.10.2017 / 20:54
2

Opa friend!

You can "disable" this resizable mode by limiting your textbox to the size you want, eg:

textarea {max-width:100px; max-height:100px;}

I hope to have helped, any questions ask!

    
25.10.2017 / 23:59