Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Changing CSS for a select number of passages?

Hey there, Twine folks! Long time, no see.

So, I'm back to making some stuff in Twine, but I've run into a problem. I want to change the CSS of a few passages in particular just so they display a different background gradient color (Normally it's mediumVioletRed to midnightBlue, looking to change into an acidic green to a jet black). I've looked around and I don't see the answer, so maybe it's just really easy and I'm not getting it?

Can anyone assist? I'm using Sugarcube, if that helps.

Comments

  • This question was answered in this post by TheMadExile.

    Basically if you add the same tag to one or more passages you can use that tag when writing your CSS selectors.

    eg. If you want the background color of some of your passages to be green you could add the same tag (maybe "forest") to each of these passages and then add the following CSS to your stylesheet passage.

    body.forest {
    background-color: green;
    }
Sign In or Register to comment.