A Pen by Thaddeus Jiang on CodePen.
Created
June 13, 2024 07:44
-
-
Save ThaddeusJiang/19d28f4fe4b74eb7578df8864ff534e2 to your computer and use it in GitHub Desktop.
Textarea with auto-sizing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<textarea> | |
Textarea with auto-sizing | |
</textarea> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
textarea { | |
field-sizing: content; | |
min-height: 3lh; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment