![](https://csdnimg.cn/release/download_crawler_static/10278493/bg10.jpg)
Contents
Line Spacing ........................................................................................................................442
Embedding Fonts in a Document ...................................................................................... 442
Summary ..............................................................................................................................444
Chapter30:TextFormatting ................................445
Aligning Text .......................................................................................................................445
Controlling horizontal alignment .............................................................................445
Controlling vertical alignment ..................................................................................448
Indenting Text .....................................................................................................................450
Controlling White Space Within Text ................................................................................451
Clearing floating objects ........................................................................................... 451
The white-space property .........................................................................................454
Controlling Letter and Word Spacing ................................................................................455
Specifying Capitalization .....................................................................................................457
Using Text Decorations .......................................................................................................458
Autogenerated Text .............................................................................................................460
Using CSS Table Properties ................................................................................................ 460
Controlling Table Attributes ...............................................................................................460
Table borders .............................................................................................................461
Table border spacing .................................................................................................462
Collapsing borders ....................................................................................................464
Borders on empty cells ............................................................................................. 465
Table Layout ........................................................................................................................467
Aligning and Positioning Captions .....................................................................................468
Summary ..............................................................................................................................470
Chapter31:CSSLists .....................................471
An Overview of Lists ...........................................................................................................471
CSS Lists — Any Element Will Do ....................................................................................472
List Style Type .....................................................................................................................473
Positioning of Markers ........................................................................................................475
Using Images as List Markers .............................................................................................476
Summary ..............................................................................................................................478
Chapter 32: Padding, Margins, and Borders . . . . . . . . . . . . . . . . . . . . 479
The CSS Box Formatting Model .........................................................................................479
Element Padding ................................................................................................................. 482
Element Borders ..................................................................................................................483
Border width ............................................................................................................. 483
Border style ............................................................................................................... 484
Border color ...............................................................................................................485
Border property shortcuts .........................................................................................486
Border spacing ...........................................................................................................487
Element Margins ..................................................................................................................487
Dynamic Outlines ................................................................................................................489
Summary ..............................................................................................................................490
xxv
www.it-ebooks.info