Using calc to figure out optimal line-height

PHOTO EMBED

Thu Oct 27 2022 14:08:01 GMT+0000 (Coordinated Universal Time)

Saved by @Sebhart #typography #css #fluid

line-height: calc(2px + 2ex + 2px);
content_copyCOPY

Proper line height on all font sizes.

https://kittygiraudel.com/2020/05/18/using-calc-to-figure-out-optimal-line-height/