#### 7.7.4 Configuring cell format properties

The names of cell formats must end in Cell. The default cell format is named Cell. Cell format Cell has no default properties; however, you can define a format for Cell:

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

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

Table 7-7 Format properties of table cells

Cell format property | Valid cell property values
category | TableCellFormats
help | Any text to describe purpose or use of format
vertical align | top, middle, or bottom
margin left margin right margin top margin bottom | (RTF only) Number and units; values override corresponding cell margin settings in table formats
padding left padding right padding top padding bottom | (HTML only) Number and units; values override corresponding cell padding settings in table formats
border left border right border top border bottom | Names of border formats; override row but not table borders
shading | Shading format; overrides table and row shading;
css | (HTML only) Adds information to the cell-format CSS code
rtf | (RTF only) Adds information to the cell-format RTF code
start | Inserts content at the top of the cell
end | Adds content at the bottom of the cell

Some examples:

[Cell]
; These are the default RTF cell properties:
margin left = 6pt
margin right = 6pt
margin top = 6pt
margin bottom = 6pt
border left = LightBorder
border right = LightBorder

[EmptyCell]
border left = NoBorder
border top = NoBorder

[BodyCell]
based = Cell

[ShadedCell]
based = BodyCell
shading = LightGreyShade

[XtraShadedCell]
based = BodyCell
shading = DarkGreyShade

[RowHeadCell]
based = BodyCell
shading = LightGreyShade
border right = HeavyBorder

[ColHeadCell]
based = BodyCell
shading = LightGreyShade
border bottom = HeavyBorder

Previous Topic: 7.7.3 Configuring row format properties

Next Topic: 7.8 Configuring page layouts for RTF output

Parent Topic: 7.7 Configuring table output formats

Sibling Topics:

7.7.1 Naming and defining table, row, and cell formats

7.7.2 Configuring table format properties

7.7.3 Configuring row format properties

Table of Contents • Index