Hello I’m back with probably another dumb question but I for the life of me cannot figure out how to make the font bigger for certain texts. Mainly just like chapter titles. I’ve tried a couple things I’ve found on google but it didn’t really help. I’m using twine sugarcube and help would be very much appreciated thank you
Are your titles already wrapped in <h1></h1>
tags? Could also be <h2>, <h3>, <h4>
etc.
If so, just change the css.
h1 {
font-size: larger (or 48px)
}
There’s SugarCube’s markup for headings: ! Chapter title
. Once you have it markup, you can use styles to change the size, as @dsherwood points out (although note that you need a semicolon at the end of that middle line, probably):
h1 {
font-size: larger; /* use one or the other of these lines */
font-size: 48px;
}
They are not! Didn’t even know that was a thing
Ok so do I put that around the title or do I also put it in the style sheet?
Oop, sorry! In the passage you’d write
! Main Heading
!! Sub-heading
!!! Sub-sub-heading
And then if you don’t like the sizes you can add CSS in the style sheet to change the size of h1
, h2
, or h3
(they go down to h6
, but I rarely need more than three levels of headings…)
Oh my god that was so much easier than what I kept getting sent to Thank you!