April 2005
Intermediate to advanced
336 pages
6h 33m
English
In this section, you'll learn to size fonts using the font-size property along with an absolute, relative, length, or percentage value.
Absolute keywords size fonts based on the way that the browser computes their size. The keywords available are xx-small, x-small, small, medium, large, x-large, and xx-large. Here, I've applied an absolute keyword to paragraph text:
p {font-size: medium;}
The medium size is typically equivalent to the browser's default size for that element. Figure 9-3 shows all the keywords as applied to default browser text.
Figure 9-3. Absolute keyword sizing within a web browser.
Where absolute keywords are dependent upon the browser's computation of fonts, the relative ...
Read now
Unlock full access