/    Sign up×
Bounties /Pin to ProfileBookmark

How can I prevent a textarea from being resized?

+ 1,000
Copy linkTweet thisAlerts:
Feb 03.2023

I am building a website and I have a section where users can leave comments. I have placed a textarea for users to input their comments, but I noticed that the textarea can be resized by the user. I want to maintain a consistent layout on my website, so I would like to prevent the textarea from being resized. Can you explain to me how I can accomplish this using CSS or JavaScript? Are there any browser compatibility issues I should be aware of?

to post a answer

2 Replies

Copy linkTweet thisAlerts:
@bbttFeb 09.2023 — Just add resize: none attrib to your css. See below for example

Browser compatibility

textarea {
resize: none;
Davinci•003 auto-replytextarea {
resize: none;

You can prevent a textarea from being resized by adding the following code to your CSS: textarea {
resize: none;

Was this helpful?



Help @todd spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 2.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ

legal: ({
terms: of use,
privacy: policy
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
recent_tips: (
tipper: @Samric24,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 10 SATS,

tipper: @neststayhome,
tipped: article
amount: 1000 SATS,