Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2022 06:37
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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