One method is to use javascript to add a classname to the body tag and then remove it when you want to change back, and then use a CSS class based selector to do your styling.
example: Create three passages named First Passage, Second Passage, and Third Passage: (note: using TWEE notation. you can name the class whatever you like I am using someclass)
:: First Passage This is the first passage. [[Second Passage|Second]]
:: Second Passage <% $(document.body).addClass('someclass') %> This is the second passage. [[Third Passage]]
:: Third Passage <% $(document.body).removeClass('someclass') %> This is the third passage
Then use a CSS selector based on the class name to do whatever you want to the passage, Im just going to change the background colour.
Thanks. That does what I asked, but not quite what I needed. Fortunately it was close enough that I could figure out the rest myself.
Apparently text width is determined by a div with ID "passage." So what I really wanted was to expand the width of that div. Adding a class to that div through a method similar to what you describe generally works, but didn't work for width in particular. I guess it won't override something that's been set elsewhere.
Comments
example: Create three passages named First Passage, Second Passage, and Third Passage:
(note: using TWEE notation. you can name the class whatever you like I am using someclass) Then use a CSS selector based on the class name to do whatever you want to the passage, Im just going to change the background colour.
Fortunately it was close enough that I could figure out the rest myself.
Apparently text width is determined by a div with ID "passage." So what I really wanted was to expand the width of that div. Adding a class to that div through a method similar to what you describe generally works, but didn't work for width in particular. I guess it won't override something that's been set elsewhere.
What eventually worked was: to widen the div and: to return it to its default.