Calculate optimal line height for readable typography using golden ratio and other standard ratios.
Browser default is typically 16px
The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs. How vexingly quick daft zebras jump!
/* Line Height Calculator Output */ font-size: 16px; line-height: 1.618; /* unitless - recommended */ /* Alternative formats */ line-height: 25.89px; /* pixel value */ line-height: 1.618rem; /* rem value */ line-height: 162%; /* percentage */
Example: 16px x 1.618 = 25.89px
Creates visually harmonious proportions
Extra space distributed above and below text