Chapter 9: Tables | ||||||||
|
||||||||
Controlling Space in and Around Cells
Cell spacing adds space between cells, making the table bigger without changing the size of individual cells. Cell padding adds space around the contents of a cell, in effect, pushing the walls of the cell outward. When using tables for layout, you often want to eliminate both kinds of spacing. To control space in and around cells:
Tips
|
||||||||
Figure 9.25 Cell spacing adds space between cells. Cell padding adds space between a cells contents and its border. When using tables for layout, you often want to eliminate both types so that your elements are right up next to one another. | ||||||||
Figure 9.26 Since this table contains columns of text, we need a little bit of spacing between the text and the cells borders. Theres no need for space between the cells themselves. | ||||||||
Figure 9.27 Cell spacing and padding help make columns of text more readable. (Its invisible; Ive just highlighted it here for your reference.) | ||||||||