Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
html {
font-size: 62.5%; /* sets the base font to 10px for easier math */
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
body {
font-size: 16px;
font-size: 1.6rem;
/* sets the default sizing to make sure nothing is actually 10px */
h1 {
font-size: 32px;
font-size: 3.2rem;
@media screen and (min-width: 1280px) {
html {
font-size: 100%;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.