Inheritance and the all Property
Understand CSS inheritance rules and use the all property to reset inherited styles.
What is Inheritance?
Some CSS properties automatically pass their computed value down to child elements. This is inheritance. It saves writing the same rule for every element in a component.
Inherited Properties
Typically inherited: typography and text properties:
font-family,font-size,font-weight,font-stylecolorline-heightletter-spacingtext-alignvisibility- CSS custom properties
All lessons in this course
- Specificity Calculation: Inline Style ID Class Element
- The Cascade: Origin and Order
- !important: When and Why Not
- Inheritance and the all Property