CSS has introduced powerful tools for enhancing web typography: line-height units (lh
and rlh
) simplify layout adjustments by tying sizes to text rhythm, and margin-trim removes unwanted space from paragraphs against containers. Both features improve design aesthetics with minimal effort, although support varies by browser, requiring progressive enhancement techniques for wider compatibility.
https://12daysofweb.dev/2024/css-margin-trim-line-height-units/