CSSPOST
https://csspost.com
Just another WordPress siteFri, 09 Sep 2022 19:22:34 +0000en-US
hourly
1 https://wordpress.org/?v=6.6.2Optimal line height with calc in CSS
https://csspost.com/optimal-line-height-with-calc/
https://csspost.com/optimal-line-height-with-calc/#respondFri, 09 Sep 2022 21:13:11 +0000https://csspost.com/?p=186When setting line-height to a unitless number, it uses that number and multiply it with the font size. The result calculated by the browser is then used as the line-height. In this case the line-height is 150% of the font size. Even if this value is relative, it will not solve the problem for us. The optimal line height for small texts are close to 1.5. For large texts the optimal line-height is...