Using Calc to Figure Out Optimal Line-height

A formula based approach by Jesús Ricarte, using calc to figure out optimal line-height. This technique also helps with responsive typography.

A diagram showing text typography with measurements. The first line has "Lorem ipsum do" highlighted with a pink background, labeled half leading top: 0.25, content: 1, and line-height: 1.5. The second line reads "sit amet, consec," with a blue background labeled similarly.

More like this