Skip to content

Instantly share code, notes, and snippets.

@Timberfang
Created April 22, 2024 00:53
Show Gist options
  • Save Timberfang/a218a21749bdaeebad8305c0cb525766 to your computer and use it in GitHub Desktop.
Save Timberfang/a218a21749bdaeebad8305c0cb525766 to your computer and use it in GitHub Desktop.
The CSS I use for formatting my fiction writing.
/* CC0 1.0 License (https://creativecommons.org/publicdomain/zero/1.0) */
body {
margin: auto;
padding-right: 1em;
padding-left: 1em;
max-width: 44em;
color: black;
font-family: Verdana, sans-serif;
font-size: 100%;
line-height: 140%;
color: #333;
}
h1, h2, h3, h4, h5 { font-family: verdana;
font-weight: bold;
border-bottom: 1px solid black;
color: #704040; }
h1 {
font-size: 130%;
}
h2 {
font-size: 110%;
}
h3 {
font-size: 95%;
}
h4 {
font-size: 90%;
font-style: italic;
}
h5 {
font-size: 90%;
font-style: italic;
}
h1.title {
font-size: 200%;
font-weight: bold;
padding-top: 0.2em;
padding-bottom: 0.5em;
text-align: center;
border: none;
}
footer {
padding-top: 1em;
font-size: 90%;
color: black;
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment