This resizable property is used to set the resizable area of elements. It is mostly used with textarea and div elements. To disable resizable property of an element use resize to none. It is the default value.
Syntax
resize: none;
Example:
<!DOCTYPE html> <html> <head> <title>Disable resize property</title> <style> h1 { color:green; } body { text-align:center; } textarea { overflow:auto; resize:none; width:200px; height:100px; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>Disable resize property</h2> <textarea>GeeksForGeeks: A computer science portal for geeks. It is a good platform to learn programming. </textarea> </body> </html> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by resize property are listed below:
- Apple Safari 4.0
- Google Chrome 4.0
- Firefox 5.0
- Opera 15.0
Recommended Posts:
- How to disable arrow key in textarea using JavaScript ?
- How to make sure clients have enough words in textarea by using angularjs in order to disable/enable a button?
- jQuery UI | Resizable
- How to disable text selection highlighting using CSS?
- How to disable a link using only CSS?
- How to disable zoom on a mobile web page using CSS?
- How to disable a CSS :hover effect?
- HTML | DOM Textarea autofocus Property
- HTML | DOM textarea minlength Property
- HTML | DOM Textarea maxlength Property
- HTML | DOM Textarea cols Property
- HTML | DOM Textarea disabled Property
- HTML | DOM Textarea placeholder Property
- HTML | DOM Textarea rows Property
- HTML | DOM Textarea required Property
- HTML | DOM Textarea wrap Property
- HTML | DOM Textarea readOnly Property
- HTML | DOM Textarea defaultValue property
- HTML | DOM Textarea autocomplete Property
- HTML | DOM Textarea form Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


