The cleanest trick for autogrowing textareas

Chris Coyier / filed under HTML & CSS

The trick is that you exactly replicate the content of the textarea in an element that can auto expand height, and match its sizing.

Subscribe to newsletter

Design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency

Permission