The CSS Podcast cover image

5: Inheritance

The CSS Podcast

00:00

Is It Possible to Override Custom CSS?

Inheritance is a partner in crime to the cascade, yet I think they're often lumped together for folks in their mental models of CSS. For example, with typography, the child inherits a lot of various font properties. Font family and font size are two examples of inherited font properties. Rems and ems are two such units that are affected by font size. If you're styling an entire page's spacing with values based on rems, you can increase or decrease the spacing along with the base font value of that entire page.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app