`lh` and `rlh` units
Publikováno: 5.5.2020
There’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 the same only of the root element (probably the <html>
element) rather than the current element.
Why would that be useful? Šime Vidas’ has a strong point:
“Vertical Inline Centering” of an icon
.inline-icon {
display: inline-block;
width: 1lh;
height: 1lh;
}
… Read article “`lh` and `rlh` units”
The post `lh` and `rlh` units appeared first on CSS-Tricks.
There’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 the same only of the root element (probably the <html>
element) rather than the current element.
Why would that be useful? Šime Vidas’ has a strong point:
.inline-icon {
display: inline-block;
width: 1lh;
height: 1lh;
}
The post `lh` and `rlh` units appeared first on CSS-Tricks.