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

If elements share some property they can be specified in one place using comma separated list.

XML SourceCSS stylesheetExample link
(1)
     <AAA>
          <BBB>bbb</BBB>
          <CCC>ccc</CCC>
          <DDD>ddd</DDD>
          <EEE>eee</EEE>
          <FFF>fff</FFF>
     </AAA>

BBB, DDD, FFF {color:red}
CCC, EEE {color:blue}
View output