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 : 8385
Enregistré le : 17 mai 2024, 23:49
Sujets : 8373
2
Statut : Hors ligne

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

  • Citer
  • connectez-vous pour aimer ce message

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

Mots de passe - Connexion