Last active
April 22, 2016 21:51
-
-
Save billmei/5351016 to your computer and use it in GitHub Desktop.
Font-size standard scale
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { font-size: 100%; } /* 16px standard, but should make this scale with mobile */ | |
h1 { font-size: 3em; } /* 16 x 3 = 48 */ | |
h2 { font-size: 2.25em; } /* 16 x 2.25 = 36 */ | |
h3 { font-size: 1.5em; } /* 16 x 1.5 = 24 */ | |
h4 { font-size: 1.125em; } /* 16 x 1.125 = 18 */ | |
p { font-size: 1em; } /* 16 x 1 = 16 */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment