Besides the text properties, probably the next most common set of style properties used is the font properties. I'll take a look at them here, starting with the font shorthand property. font
This shorthand property indicates font-style , font-variant , font-weight , font-size , line-height , and font-family properties. You list those properties in that orderand without commas between them, except between items in a list of alternate font families. You can also set all these properties individually. font-family
You set this property to a list of font family names or generic family names . Your document can be viewed in a browser that doesn't support the font face you want, so you can list alternates, as we have in this chapter. You can also list generic font families, such as serif or sans-serif . font-size
This property sets the size of a font face. It is usually set in terms of points, but, of course, you can use any valid measurement. font-stretch
You use this property to set a normal, condensed, or extended font face. It's not supported anywhere yet, as far as I know. font-style
This property specifies font styles, such as normal (also called upright or standard), italic , and oblique fonts. font-variant
This property indicates whether a font is a normal or special "small-caps" font. font-weight
This property gives the weight of a font, such as normal , bold , or a numeric value. |