Specifying cell spacing and padding

Cell spacing is space between cells in a table. Cell padding is space between the border of a cell and its contents. You can specify a single cell padding value for a whole table, or you can specify a padding amount independently for each side of an individual cell. If you do both, individual cell padding values override the table-wide value. Cell spacing, on the other hand, can only be set for a whole table.

Some examples of different spacing and padding values are shown below:

hello

hello

hello

hello

hello

hello

hello

hello

hello

hello

hello

hello

Spacing = 10;
Padding = 0

Spacing = 1;
Padding = 10

Spacing = 5;
Padding = 0;
first cell’s padding = 10

To set cell spacing and padding for a whole table
  1. Right-click the table and click Table Properties.
  2. In the Cell padding box, enter a number of pixels.
  3. In the Cell spacing box, enter a number of pixels.
  4. Click OK.
To specify padding amounts for selected cells
  1. Select the cells for which you want to specify padding amounts.
  2. On the Layout menu, go to Border, click the triangle under Border and then click Cell Borders.
  3. In the border selection box, select the cell side for which you want to set the padding. To select multiple sides at once, click each while holding down the Ctrl key. (See the examples below.) To select all four sides, click Select All. To deselect all sides, click in the middle of the box. By default, all four sides are selected.

    Namo Web Editor 4.format.box.1 Specifying cell spacing and padding

    Namo Web Editor 4.format.box.2 Specifying cell spacing and padding

    Click a side to select it.

    Click while holding down Ctrl to select multiple sides.

  4. Enter a number in the Padding box and then click the unit box next to it and select a unit. If you do not specify a unit, the value will be interpreted as pixels.
  5. Repeat steps 3 and 4 if you want to set a different padding value for another side.
  6. Click OK.

Namo Web Editor icon note Specifying cell spacing and paddingIf you set a table’s cell spacing to 0, the borders of adjacent cells will overlap.

Related topics

Selecting parts of a table

Table Properties dialog box

Style dialog box – Borders & Background tab

Specifying cell spacing and padding