2022-09-09
3 min read

Optimal line height with calc in CSS

A good line-height for text vary depending on its size. For small texts we often use a line-height around 1.5. For large texts we often use a line-height around 1. What if we could set one single dynamic value, that automatically scales depending on the font size? We can and I'm going to show you how.
Copyright © CSSPOST