Want to disable resizable property of textarea? Here is some tips to prevent the click on the bottom right corner of the textarea.
To disable resizable property of textarea, there are a few options.
<textarea name="txtName" id="txtID"></textarea>
CSS can solve this problem and unfortunately it’s only supported on 60% of used browsers nowadays. Basically, you can use below CSS rule to disable resizing behavior.
textarea {
resize: none;
}
Or, you can use name or id attribute wise:
textarea[name=txtName] {
resize: none;
}
#txtID {
resize: none;
}
Read Also: jQuery data attributes
Sometimes, you can resize by restrictions i.e. none, both, horizontal, vertical, and inherit. For below code, user can resize vertically, but the width is fixed.
textarea {
resize: vertical;
}
Unless overflow property is something other than visible, this property does nothing i.e. default for most elements. So, to use this, you will have to set something like overflow: scroll;
Pain in muscles and joints can be a problem in everyday life, whether it involves…
Most modern businesses spend a lot of time thinking about digital touchpoints. Websites, email campaigns,…
While TikTok and Instagram battle for users’ attention with short vertical videos, Elon Musk’s social…
When you are looking to apply for a mortgage the one thing that most people…
Once you've memorized basic blackjack strategy, it's time to delve deeper into the game. Advanced…
Yoga is no longer just a physical practice. Yoga is popular as a lifestyle practice.…