The
cascading aspect of CSS is about HTML Elements that exist
inside other HTML Elements.
- In this example, there are three divs, one inside another.
- A style for all divs has been set to make the padding increase according to level.
- Each div has a separate class to make it a different colour.
But here's the thing: the outer div specifies a text colour
which also applies to all the inner elements.
That's the cascading bit.