#### 7.7.2 Configuring table format properties

As a convention, the name of any table format should end in Table. The default table format is named Table. Table format Table has no default properties; however, you can define a format for Table:

[Table]
property1 = value1
property2 = value2a value2b value2c ...
. . .

For HTML output, table format names are used in the class attribute of table elements, and result in CSS that implements their properties. Table 7-5 lists the properties you can define for tables.

Table 7-5 Table output format properties

Table property | Valid table property values
category | TableFormats
help | Any text to describe purpose or use of format
table align | left, center, or right
border model | collapse or separate
border spacing | (separate model only) horizontal then vertical number and units
empty cells | (separate model only) show or hide borders and background
table layout | auto or fixed
margin top | Space above the table top border
margin bottom | Space below the table bottom border
margin left | Distance from the page margin to the left edge of the first column
table width | Number and units of the size on which percent column widths are based
column widths | List of column widths from left to right; if the column count exceeds the list length, the last value is reused; if the width is in percent, the table width must be specified
column border left column border right | Border format names for left and right borders of columns; default left and right borders for cells in each column; overridden by cell borders and table borders
cell margin left cell margin right cell margin top cell margin bottom | (RTF only) Number and units; default values for all cells; can be overridden by cell format properties
cell padding left cell padding right cell padding top cell padding bottom | (HTML only) Number and units; default values for all cells; can be overridden by cell format properties
header rows | List of names of header row formats, in top-down order of header rows; if the number of header rows exceeds the list length, the last format is reused
body rows | List of names of body row formats, in top-down order of body rows; if the number of body rows exceeds the list length, the whole list is restarted
footer rows | List of names of footer row formats; if the number of footer rows exceeds the list length, the last format is reused
border left border right border top border bottom | Names of border formats; properties of these formats override row and cell border properties
shading | Shading format, overridden by row and cell shading
css | (HTML only) Adds information to the table format CSS code
rtf | (RTF only) Adds information to the table format (at the start of each row)
before | Adds content before the table
after | Adds content after the table

Some examples:

[Table]
table align = left
margin left = 0
cell margin left = 1pt
cell margin right = 1pt
cell margin top = 1pt
cell margin bottom = 1pt
header rows = HeaderRow
body rows = Row

[NormalTable]
based = Table
margin top = 3pt
margin bottom = 6pt
table width = 7in
column widths = 3in 2in 2in
column border left = LightBorder
column border right = LightBorder
header rows = HeaderRow
body rows = BodyRow BodyRow ShadedRow
border top = LightBorder
border bottom = LightBorder
border left = NoBorder
border right = NoBorder

Previous Topic: 7.7.1 Naming and defining table, row, and cell formats

Next Topic: 7.7.3 Configuring row format properties

Parent Topic: 7.7 Configuring table output formats

Sibling Topics:

7.7.1 Naming and defining table, row, and cell formats

7.7.3 Configuring row format properties

7.7.4 Configuring cell format properties

Table of Contents • Index