November 11, 2020 03:22 pm GMT
Original Link: https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
The Cleanest Trick for Autogrowing Textareas
Earlier this year I wrote a bit about autogrowing textareas and inputs. The idea was to make a <textarea>
more like a <div>
so it expands in height as much as it needs to in order to contain the current value. It’s almost weird there isn’t a simple native solution for this, isn’t it? Looking back at that article, none of my ideas were particularly good. But Stephen Shaw’s idea that I linked to toward the end of it … Read article “The Cleanest Trick for Autogrowing Textareas”
The post The Cleanest Trick for Autogrowing Textareas appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
Original Link: https://css-tricks.com/the-cleanest-trick-for-autogrowing-textareas/
Share this article:
Tweet
View Full Article