Monday, August 10, 2020

Setting line-height based on ex units

According to "Modern CSS Techniques To Improve Legibility", the optimal line height could be set with:

line-height: calc(1ex / 0.32);

No comments:

Post a Comment