Created
June 8, 2013 02:44
-
-
Save SaraSoueidan/5733774 to your computer and use it in GitHub Desktop.
Line Height Best Practices
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:62.5%; /*to get base 10 and use ems or REMS more easily, biseer 1.4rem = 14px*/ | |
/*use REMS much easier and saves lots of calculations*/ | |
line-height:1.5; /*kind of standard and best-practice*/ | |
} | |
h1,h2,h3,h4,h5,h6 { | |
line-height:1.2;/*usually don't need as much line height space as paragraphs*/ | |
} | |
sup,sub { | |
line-height:0;/*always to prevent them from increasing the height of the line box*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment