Skip to content

Instantly share code, notes, and snippets.

@maxkarkowski
Created April 21, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxkarkowski/47bdf5192983cbf74095 to your computer and use it in GitHub Desktop.
Save maxkarkowski/47bdf5192983cbf74095 to your computer and use it in GitHub Desktop.
Fontsize
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