How to make textareas grow automatically with a little bit of CSS and one line of JavaScript
Written by Stefan Judis
- Published at
- Updated at
- Reading time
- 1min
This post is a quick one for the bookmarks: Chris Coyier shared a smart way to automatically grow textareas when user content expands across the defined textarea size.
The solution uses stacked CSS grid elements, pseudo-elements, and one (!) line of inline JavaScript. Beautiful!
If you enjoyed this article...
Join 5.5k readers and learn something new every week with Web Weekly.
Reply to this post and share your thoughts via good old email.