Skip to content

Instantly share code, notes, and snippets.

@cassidoo
Created May 4, 2022 06:37
Show Gist options
  • Save cassidoo/6ac9d549727740051ee428b7265e92e3 to your computer and use it in GitHub Desktop.
Save cassidoo/6ac9d549727740051ee428b7265e92e3 to your computer and use it in GitHub Desktop.
Base CSS for a plain HTML document

If you don't want to deal with styling a mostly text-based HTML document, plop these lines in and it'll look good:

html {
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  font-size: 1.3em;
  max-width: 40rem;
  padding: 2rem;
  margin: auto;
  line-height: 1.5rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment