. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Image-replacement techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Defining font size and line height . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Setting text in pixels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Setting text using keywords and percentages . . . . . . . . . . . . . . . . . . . . . 80
Setting text using percentages and ems . . . . . . . . . . . . . . . . . . . . . . . . 81
Setting line height . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Defining font-style, font-weight, and font-variant . . . . . . . . . . . . . . . . . . . . . 83
CSS shorthand for font properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Controlling text element margins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Using text-indent for print-like paragraphs . . . . . . . . . . . . . . . . . . . . . . . . 85
Setting letter-spacing and word-spacing . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Controlling case with text-transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Creating alternatives with classes and spans . . . . . . . . . . . . . . . . . . . . . . . . 87
Styling semantic markup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Styling semantic markup: A basic example with proportional line heights .
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25