XML technologies / ePUB / CSS essentials / Inheritance rules

(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)

The name Cascading Stylesheets (“cascading”) suggests that inheritance is central to CSS. Inheritance keeps stylesheets compact and manageable.

A property defined for an element passes to its children. For example, a gray CSS background on a <div class="wichtig"> also appears on all contained paragraphs <p>. In practice, this theory still depends on browser or reader implementation.

Current caveats:

   

 

 

 

back to top