Chapter 5 presented a variety of text manipulation properties. This chapter continues the discussion of text manipulation with CSS's font manipulation properties. CSS includes a variety of properties that change the face, size, and style of a font. This chapter covers:
font-family property and how it is used to change the face of a font
font-style property and how it is used to make a font italic or oblique
font-variant property, a property similar to the
text-transform property presented in Chapter 5, and how this property is used to create a small-caps effect
font-weight property and how it is used to increase or decrease how bold or light a font appears
font-size property and how it is used to increase or decrease the size of a font
font property and how it is used as shorthand to specify a number of other font properties
I begin the discussion of CSS's font properties with the
font-family property is used to specify fonts. The following table outlines the
font-family property and the values that it allows.
[[ <family-name> | <generic-family> ] [, <family-name>| <generic-family>]* ]
Initial value: Varies depending on the browser or user agent.
Figure 6-1a is an example of the basic use of the
Figure 6-1a. Figure 6-1a
The rules in Figure ...