Chapter 4: Inheritance

Some CSS properties inherit, while others do not. Styling that applies to a parent also applies to its children unless specifically overridden.

Intro to Inheritance

We'll be looking at slides 33-40.

Part 1: Basic inheritance demo

Is there a difference between setting styles on * vs <body>? Can an element trump an ID?

Part 2: inherit value

Some properties inherit automatically. However, you may ask properties that don't normally inherit to do so using the inherit value. Some restrictions apply!

Part 3: Inheritance property and values

Learn about the property all and the values revert, initial, unset.