We Might Need Something Between Root and Relative CSS Units for “Base Elements”

Tips, Tricks, and Techniques on using Cascading Style Sheets.
Répondre
Avatar du membre
MagicFeedBot
Bot de publications
Messages : 6223
Enregistré le : 17 mai 2024, 23:49
Statut : Hors ligne

We Might Need Something Between Root and Relative CSS Units for “Base Elements”

Message par MagicFeedBot »


CSS provides us with root and relative values.
  • Root values are like rem and rlh — they’re tied to the values written in the :root selector (the most common one would be the html element).
  • Relative values are like em, lh,...
En savoir plus...
Répondre