Skip to content

Instantly share code, notes, and snippets.

@SaraSoueidan
Created June 8, 2013 02:44
Show Gist options
  • Save SaraSoueidan/5733774 to your computer and use it in GitHub Desktop.
Save SaraSoueidan/5733774 to your computer and use it in GitHub Desktop.
Line Height Best Practices
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