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.

1m read timeFrom davidwalsh.name
Post cover image
2 Comments

Sort: