---
title: "How to Turn off textarea resizing?"  
description: "How to Turn off textarea resizing?"  
author: "Utpal Vishwas"  
published: 2023-07-31  
updated: 2023-08-01  
canonical: https://www.mindstick.com/forum/159395/how-to-turn-off-textarea-resizing  
category: "html"  
tags: ["html input", "html element"]  
reading_time: 2 minutes  

---

# How to Turn off textarea resizing?

How to Turn off [textarea](https://www.mindstick.com/forum/155821/how-we-will-generate-textarea-control-using-htmlhelper-in-razor-view) resizing?

## Replies

### Reply by Aryan Kumar

There are a few ways to turn off text area resizing. Here are a few methods:

## Using CSS

The simplest way to disable the resizing handles is to use CSS. You can add the following CSS rule to your HTML document:

CSS

```plaintext
textarea {
  resize: none;
}
```

This will prevent the user from resizing the textarea, and will also hide the resizing handles.

## Using JavaScript

You can also disable the resizing handles using JavaScript. The following JavaScript code will disable the resizing handles for all textarea elements:

JavaScript

```plaintext
document.querySelectorAll('textarea').forEach(function(textarea) {
  textarea.style.resize = 'none';
});
```

## Using the HTML element

You can also disable the resizing handles by setting the `resize` attribute of the `textarea` element to `none`. For example, the following HTML code will disable the resizing handles for a textarea element with the id `my-textarea`:

HTML

```plaintext
<textarea id="my-textarea" resize="none"></textarea>
```

## Using a browser extension

There are also a number of browser extensions that can be used to disable the resizing handles. One such extension is called "Text Area Resizing Disabler". This extension can be found in the Chrome Web Store and the Firefox Add-ons Store.

To install the extension, simply click on the "Add to Chrome" or "Add to Firefox" button. Once the extension is installed, you will need to enable it. To do this, click on the three dots in the top right corner of the Chrome or Firefox window, and then select "Extensions". Find the "Text Area Resizing Disabler" extension, and then click on the "Enable" button.

Once the extension is enabled, the resizing handles will be disabled for all textarea elements in Chrome or Firefox.


---

Original Source: https://www.mindstick.com/forum/159395/how-to-turn-off-textarea-resizing

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
