Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[CSS HELP] Auto-Expanding Textareas?

1563798558
Axel
Pro
Sheet Author
I would like to have assistance in understand and implementing auto-expanding textareas, the way it's done on the Blades in the Dark character sheet for example. When you leave focus of the field, it transitions to a fixed size that accommodates the content. It seems to be doing this by replacing it with a <div>, but I'm not sure how it is still a <textarea> at the same time when you focus on it to enter text. I see no script that does this, so it's apparently done through pure CSS.
1563801187
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Here's a post from jakob with more details on the method.
1563804166
Axel
Pro
Sheet Author
Thanks! I'll check that out.