>> English << | česky | PortuguêsZVON > Tutorials > CSS2 tutorial
>> Example 11 << | Prev | Next | Index | Contents

If a property is not specified for the element, it inherits this property from its parent.

XML SourceCSS stylesheetExample link
(1)
     <AAA>
          <BBB>bbb
               <CCC>ccc</CCC>
          </BBB>
     </AAA>

AAA {color:red}
CCC {color:blue}
View output