You can set these values independently through
the Table Property inspector.
If no cell spacing or padding value is indicated in the Table Property inspector, most browsers
use a default value of 2 pixels for cell spacing and 1 pixel for cell padding. If your Web page
design calls for a close arrangement of cells, explicitly change either (or both) the CellSpace or CellPad
values to 1 or 0.
To change the amount of whitespace between each cell in a table, enter a new value in the CellSpace text
box of the Table Property inspector. If you want to adjust the amount of whitespace between the borders of
the cell and the actual cell data, alter the value in the CellPad text box of the Table Property inspector.
Figure 13-11 shows an example of tables with wide (10 pixels) cell spacing and cell padding values
(the shaded space is the actual cell size).
FIGURE 13-11
You can add additional whitespace between each cell (cell spacing) or within each cell (cell padding).
Merging and splitting cells
You have seen how cells in HTML tables can extend across (span) multiple columns or rows. By default, a
cell spans one column or one row. Increasing a cell??™s span enables you to group any number of topics under
one heading. You are effectively merging one cell with another to create a larger cell.
Pages:
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886