CSS 2 Example 32

>> English << | česky | Português ZVON > Tutorials > CSS2 tutorial
Intro / Search / ZVON
>> 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

AltStyle によって変換されたページ (->オリジナル) /