17.4.43 tblCellSpacing

This element specifies the default table cell spacing (the spacing between adjacent cells and the edges of the table) for all cells in the parent row. If specified, this element specifies the minimum amount of space which shall be left between all cells in the table including the width of the table borders in the calculation. It is important to note that row-level cell spacing shall be added inside of the text margins, which shall be aligned with the innermost starting edge of the text extents in a cell without row-level indentation or cell spacing. Row- level cell spacing shall not increase the width of the overall table.

This value is specified in the units applied via its type attribute. Any width value of type pct or auto for this element shall be ignored.

[Example: Consider a table whose first cell has a six point wide table border, and a table cell spacing value of 0.01 inches. The resulting table would have 0.01 inches of space between each table cell regardless of the width of the cell border, as follows (notice that no border is covered by any other border):

R1C1

R1C2

R2C1

R2C2

end example]

If this element is omitted, then the cells properties.

in this row

shall inherit the cell spacing from the associated table level

[Example: Consider a table where the second row has a cell spacing of 0.1 inches for all sides specified via the table row properties as follows:

This table row cell spacing is specified using the following WordprocessingML:

<w:trPr>
  <w:tblCellSpacing w:w="144" w:type="dxa"/>
</w:trPr>

The tblCellSpacing element as a child of trPr specifies the default cell spacing between all cells in the current row, in this case 144 twentieths of a point. end example]

This element’s content model is defined by the common table measurement definition in 17.4.87.

Last updated on