| Advanced CSS |
Part 2: Font PropertiesThere are many CSS properties to use in your style sheets. Here are some of the more popular properties and how to use them.
Font Properties
To define specific font families, write the family names in the order you would
like them displayed (most accurate to your design first). Separate each family
with a comma: font-family : arial,geneva,helvetica ; To define a generic font family: font-family : serif;Generic font families allow the browser to choose the font most appropriate that is included on the current system. These are:
font-size - defines the size of the font. The font size can be specified as an exact size, a relative size, a length, or a percentage (of the existing space). To define the exact size, simply specify the size in one of the following measurements:
There are seven standard sizes in HTML and XML documents, you can define your font-size based on those sizes as well (standard text is size medium):
To define your font-size as relative to the surrounding text, you can simply say:
font-style - defines whether the font is italic, oblique, or normal.
font-variant - defines whether the font is normal or small-caps.
font-weight - defines how dark or light the text is.
Next page > Text Properties > Page 1, 2, 3 ~ Jennifer Kyrnin |
