Add

Lorem ipsum

Lorem ipsum

A
A
A
Design

0 views

2 min

How to Disable Resizing for a Textarea in Webflow

Learn how to disable or control resizing on a Webflow textarea with CSS, and how to build an auto-expanding textarea.

In this tutorial, Sandro, cofounder of Gemeos Webflow agency, shows you how to disable or control textarea resizing in Webflow.

Example

Type some text to see the textarea grow automatically

CSS valueBehaviorUse case
resize: noneNo resizingForm with strict design
resize: verticalVertical resizing onlyStandard textarea
resize: horizontalHorizontal resizing onlyRare
resize: bothBoth directions (default)Native behavior

CSS solution (recommended)

This is the simplest solution. Add this CSS in a global embed or in your Webflow styles via an embed on the page.

textarea {
resize: none;
}

/* Or target a specific class: */
.mon-textarea {
resize: vertical;
min-height: 120px;
max-height: 300px;
}

Auto-expanding textarea

For a textarea that grows automatically with the content (without a visible scrollbar):

document.querySelectorAll('textarea').forEach(function(ta) {
ta.style.resize = 'none';
ta.style.overflow = 'hidden';
function autoResize() {
ta.style.height = 'auto';
ta.style.height = ta.scrollHeight + 'px';
}
ta.addEventListener('input', autoResize);
autoResize();
});

good to know

An auto-expanding textarea improves the UX for long-message forms: users can always see all their text without having to scroll inside the field. Warning: set a max-height in CSS if you don't want the textarea to keep growing forever when someone pastes a long block of text.

Conclusion

resize: none is the fastest CSS solution to apply. The auto-expanding script improves the UX even more.

Good to know

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet consectetur.

Lorem ipsum dolor sit amet consectetur. Aliquam orci sagittis dignissim sapien praesent donec.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Published on

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

Let’s f*****G GO !!

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...