Hi,
I’m trying to change the height of a particular Textarea box by writing the code in the Story stylesheet.
This is what I had so far:
#textarea-$trialrun {
width: 10px
min-width: 10px;
height: 10px;
}
This is the code in the chapter:
<<textarea “$trialrun” " ">>
but it doesn’t seem to work. Can you help me?
If you inspect the textarea while running the game in your browser, you’ll see the element is named textarea-trialrun (without the “$”), so that’s what you should use in your code (I also added the missing semicolon after “width”):
EDIT: Another problem could be you have curly quotes in your example (<<textarea “$trialrun” " ">>), which are not allowed in Twine, but I assume it’s the forum that changed them - if you had them in your code, you would have received an error trying to run that passage.
EDIT 2: I just realised the width was not working because of the missing semicolon I didn’t catch at first, so you do not need to add the code for textarea in general.