4min chapter

The CSS Podcast cover image

5: Inheritance

The CSS Podcast

CHAPTER

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.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode