Table of Contents

CSS - Inheritance

About

Style properties are inherited by an element’s descendants unless otherwise specified.

Example

<div>
   <p>
        My parent div element got the style property through the CSS rule 
        and I, the p element, inherit its properties because I'm one of its descendant 
   </p>
   <div>
        <p>
        I'm also a descendant, second level :)
        </p>
   </div>
</div>
div { color: blue; }