AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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.