CSS: Property inheritance
1 min read

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:

  1. Inherited Styles
  2. Tag Styles
  3. Class Styles
  4. Id Styles
  5. Inline Styles
  6. Important Styles