Lea Verou 24.06.2021

Inherit ancestor font-size, for fun and profit

Przeczytaj oryginał

This CSS tutorial explains how to inherit font sizes from ancestor elements (like grandparents) rather than direct parents using type-relative units like 'em'. It covers real-world scenarios where this technique is necessary, including speech bubble components and working with <optgroup> elements in selects, providing solutions for maintaining scalable, DRY CSS code.

Inherit ancestor font-size, for fun and profit

komentarzy

Brak komentarzy

Bądź pierwszy, który podzieli się swoimi myślami!

Rozszerzenie przeglądarki

Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki

Tydzień

No top articles yet