<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/autogrow-textareas-with-css-aohgand6c" -->

---
title: AutoGrow Textareas with CSS | daily.dev
description: CSS now supports native language improvements for automatically expanding textarea elements. By adding the field-sizing property with a value of content,...
canonical: https://daily.dev/posts/autogrow-textareas-with-css-aohgand6c
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AutoGrow Textareas with CSS | daily.dev
og:description: CSS now supports native language improvements for automatically expanding textarea elements. By adding the field-sizing property with a value of content,...
og:url: https://daily.dev/posts/autogrow-textareas-with-css-aohgand6c
og:image: https://api.daily.dev/og/posts/AohgaNd6c.png
og:image:alt: AutoGrow Textareas with CSS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# AutoGrow Textareas with CSS

**[David Walsh](https://daily.dev/sources/dwb)** · 1 min read · 35 upvotes · 2 comments

## Summary

CSS now supports native language improvements for automatically expanding textarea elements. By adding the field-sizing property with a value of content, textarea elements can grow vertically and horizontally. The default value for field-sizing is fixed, but the new behavior of content allows for maximum expansion. To constrain the size a textarea can grow, the width/max-width and height/max-height properties can be used.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://davidwalsh.name/autogrow-textareas>

## Community discussion

Top comments from developers on daily.dev.

**@haisan** · 0 upvotes

> Support is still extremely low. No documentation can be found about this property. I keep using javascript :/

**@abobkov** · 0 upvotes

> Has anyone been able to reproduce this example in a real browser?
> The only I could find is a [draft](https://drafts.csswg.org/css-ui/#field-sizing)

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#css](https://daily.dev/tags/css), [#html](https://daily.dev/tags/html), [#ux](https://daily.dev/tags/ux), [#frontend](https://daily.dev/tags/frontend)

[View this post on daily.dev](https://daily.dev/posts/autogrow-textareas-with-css-aohgand6c)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"AutoGrow Textareas with CSS","url":"https://daily.dev/posts/autogrow-textareas-with-css-aohgand6c","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/autogrow-textareas-with-css-aohgand6c"},"datePublished":"2023-12-18T11:57:14.401Z","dateModified":"2023-12-18T11:57:13.895Z","description":"CSS now supports native language improvements for automatically expanding textarea elements. By adding the field-sizing property with a value of content,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f93259e4c4c34781c96ddaba05612817?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f93259e4c4c34781c96ddaba05612817?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"David Walsh","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"David Walsh","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5ecdb402b07a45598472bdd38a38de15","url":"https://daily.dev/sources/dwb"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/autogrow-textareas-with-css-aohgand6c","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":35},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"webdev,css,html,ux,frontend","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"David Walsh","item":"https://daily.dev/sources/dwb"},{"@type":"ListItem","position":3,"name":"AutoGrow Textareas with CSS"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/autogrow-textareas-with-css-aohgand6c","comment":[{"@type":"Comment","text":"Support is still extremely low. No documentation can be found about this property. I keep using javascript :/","datePublished":"2023-12-24T11:52:22.288Z","url":"https://daily.dev/posts/AohgaNd6c#c-UMYgn0rDO","author":{"@type":"Person","name":"Samuel","url":"https://daily.dev/haisan","image":"https://media.daily.dev/image/upload/s--m9fUjXwS--/f_auto/v1725412034/avatars/avatar_iRRQ6fHsO"}},{"@type":"Comment","text":"Has anyone been able to reproduce this example in a real browser?\nThe only I could find is a draft","datePublished":"2023-12-22T10:02:41.367Z","url":"https://daily.dev/posts/AohgaNd6c#c-kriXQwn3P","author":{"@type":"Person","name":"Andrey Bobkov","url":"https://daily.dev/abobkov","image":"https://avatars.githubusercontent.com/u/5969073?v=4"}}]}
```

