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

Set input width equal to content

August 21 (11 months ago)

Ok, I give up. I've tried everything I can think of, and everything I could find online. How do I set the width of an input box to the width of its content? 

August 21 (11 months ago)
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator

You can't really in Roll20 character sheets. We don't have the DOM access required for true responsively sized inputs/textareas. You can fake it with some html/css hackery.

August 21 (11 months ago)

Can you put the input in the same line as something else? 

August 21 (11 months ago)

Ok, figured it out