CSS: Property inheritance
Several CSS properties, like typography-related ones, inherit, and many do not. We can use the inherit keyword to force a property inheritance.
Inherited styles have the least specificity inside the CSS cascading rules.
A rough list of cascading specificity from the least to most are as follows:
- Inherited Styles
- Tag Styles
- Class Styles
- Id Styles
- Inline Styles
- Important Styles