Best use cases for the "lh" unit
Hey, i was wondering what the best use cases for the
lh
unit are, i see a lot of people use it for spacing and for icon sizes like in this example (https://codepen.io/piccalilli/pen/OJdYxRv), i'd appreciate any insight, thanks in advance.3 Replies
https://piccalil.li/blog/lh-units-are-cool/
it's the line height
basically, the best use-case is the one in the example, to avoid that the icon extends past the line height
Chris Coyier
CSS-Tricks
lh
And rlh
Units | CSS-TricksThere's some new units I was totally unaware of from the Level 4 spec for CSS values! The lh unit is "equal to the computed value of line-height" and rlh is
Ah I see, thank you both, I’ll look into both articles