Demo of CSS Inheritance 01:
font-size - and also the rem unit

Instructor and/or Students:

For general interest:

  1. Copy this page's code.
  2. Then see the effect when you change the selector...
    1. from: li
    2. to: li li
    3. and then to: li li li

This section uses the em unit for font-size, the inheritance is not a factor because the font size is relative to the root's font size:


This section uses the rem unit for font-size:     rem = root em
Inheritance is not a factor because the font size is relative to the root's font size.