August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.classes.className.tagName.fontWeight
The fontWeight property specifies the font weight used by an element when associated with the class called className. The definition can also specify a tag or the word all for tagName.
The fontWeight property can be assigned one of the following values: normal, bold, bolder, lighter, or a number from 100 to 900.
Listing 7.76 uses the fontWeight property to set different levels of weight on various text. Even though the fontWeight can be set from 100 to 900, this does not mean that there are 800 different font weights. In Listing 7.76, you will find that fontWeight 400 looks the same as fontWeight 100.
Read now
Unlock full access