Before jumping into fluid typography, it’s important to understand the basics of relative font sizing using em
and rem
units. These units allow your text to scale relative to the size of the root element or the parent element.
em
: Font size is relative to the parent element's font size. It can be affected by the cascading effect of CSS, making it potentially harder to predict.