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

The 'font-weight' property specifies the weight of the font. It can be a number 100, 200, 300, ..., 900, where each number indicates a weight that is at least as dark as its predecessor. The keywords normal and bold are equal to 400 and 700, respectively. The keywords bolder and lighter specify the next or previous value, respectively.

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

BBB {font-weight: bold}
CCC {font-weight: 900}
DDD {font-weight: lighter}
View output