textarea elements has been long known…and it’s finally here!To allow
textarea elements to grow vertically and horizontally, add the field-sizing property with a value of content:textarea {
field-sizing: content; // default is
fixed}
The default value for
field-sizing is fixed, signaling current behavior. The new behavior, content, will expand as much as possible. To constrain the size a textarea can grow, use traditional width/max-width and height/max-height properties.The post AutoGrow Textareas with CSS appeared first on David Walsh Blog.
https://tkjs.us/dwb
https://davidwalsh.name/autogrow-textareas
