GitHub Pages CSS

If you have a GitHub Pages site of HTML files that do not use Jekyll, you can still prettify them using this:

<link rel="stylesheet" href="assets/css/style.css">

Note the URL here is relative to the current page.

If you are adding styling to a subpage, you can use a prefix:

  • /repo-name/ - make it absolute using
  • ../ - make it relative

Font

source

p {
    font-family: "Times New Roman", Times, serif;
}

p.italic {
    font-style: italic;
}
p {
    font-size: 40px;
}

p {
    font-size: 100%;
}

p {
    font-size: 2.5em;
}

p.thick {
    font-weight: bold;
}

Align to the bottom. source

footer {
    margin-top: auto;
    min-height: 20px;
    padding: 10px;
}