Sorry if this is a very basic question, but my noobish fiddling with css hasn't been very fruitful, and I was hoping someone might point me in the right direction.
Essentially, I present player options/choices as a set of separate links below the descriptive text, instead of inline within the text. I would like this set of links to remain in a constant location roughly at the lower right of the passage, anchored to the bottom of the passage, regardless of how much description text the passage contains. While I can sort of achieve that effect with a div container enclosing the option links in each passage, I would like to know how to do it globally, with the game stylesheet. I can create a separate pane with a header or footer tag, but I do not know how to make a particular passage's option-statements reside in it.
Appreciate any help that comes my way.
Comments
Something like this can probably get you started:
First, initialize some variable in your startup-tagged passage to hold the passage containing your links--you can hold the links in a separate passage to keep things simple, which is what I'm doing. I use $choices in the example below. Then we'll throw this in a footer-tagged passage:
We'll style our container in CSS:
That'll give us roughly what we want, but you'll probably want to fine tune the styles. You may also want to adjust the passages or tw-story element to avoid some overlapping problems in longer passages or on smaller screens/windows. I put this:
Then, in your passage's text, include something like this to show the correct choices in the correct passage:
If you don't want to use two passages and would rather keep everything together, try something like this instead, and skip the $choices variable and the footer-tagged passage:
There's functionally no difference, it's up to you if storing the choices in a separate passage makes thing easier or harder on you.
I'm not sure if this is exactly what you were asking for, let me know if I missed something.
What can I say - this is my first brush with anything resembling object-oriented code/design. Using your suggestion, I got what I needed, though. Thanks again!