August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.classes.className.tagName.fontSize
The fontSize property specifies the size of fonts 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 values that can be used to set font size can divided into four categories, as shown in Table 7.12.
| Category | Value |
|---|---|
| Absolute | xx-small |
| x-small | |
| small | |
| medium | |
| large | |
| x-large | |
| xx-large | |
| Relative | smaller (relative font size of parent) |
| larger (relative font size of parent) | |
| Length | A number followed by a unit of measurement |
| Percentage | The size relative to font size of parent |
Listing 7.74 uses absolute font sizing ...
Read now
Unlock full access