Skip to content

Instantly share code, notes, and snippets.

@cstrap
Created September 6, 2021 08:17
Show Gist options
  • Save cstrap/e8f356adfc000d695932207e1ed8b5f6 to your computer and use it in GitHub Desktop.
Save cstrap/e8f356adfc000d695932207e1ed8b5f6 to your computer and use it in GitHub Desktop.
From article: [3 easy CSS tricks for responsive websites I use for every project](https://sjorswijsman.medium.com/3-easy-css-tricks-for-responsive-websites-i-use-in-every-project-68ec334a1522)
html {
font-size: calc(60% + 0.8vmin);
}
main {
max-width: 40rem;
margin: 0 auto;
}
* {
font-size: 1rem;
}
h1 {
font-size: 2.2rem;
}
h2 {
font-size: 1.6rem;
}
h3 {
font-size: 1.3rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment