The <cell-properties/> command

Declare table cell styling properties.

Where allowed

Within a CALS table entry or HTML table th or td cell.

Range of effect

The current table cell.

Attributes

bgcolor

Specifies the background fill color for the current table cell. See “Colors” for a description of how colors are specified.

[Note] Note

Setting a background color of “white” (or “#FFFFFF”) disables any background fill.

cell-sides

Specifies the minimum distance between the cell contents and the left and right sides of the table cell.

cell-left

Specifies the minimum distance between the cell contents and the left side of the table cell. If present, overrides the value of cell-sides.

cell-right

Specifies the minimum distance between the cell contents and the right side of the table cell. If present, overrides the value of cell-sides.

cell-top

Specifies the minimum distance between the cell contents and the top of the table cell.

cell-bottom

Specifies the minimum distance between the cell contents and the bottom of the table cell.

border-left

Specifies the thickness of the border at the left edge of the cell boundary.

border-right

Specifies the thickness of the border at the right edge of the cell boundary.

border-top

Specifies the thickness of the border at the top edge of the cell boundary.

border-bottom

Specifies the thickness of the border at the bottom edge of the cell boundary.

min-cellheight

By default, the height of a table cell is calculated as follows:

cell height = top cell indent + bottom cell indent + vertical depth of the rendered table cell content

If defined, the minimum cell height declares a measure that must be greater than or equal to zero.

valign

Specifies the vertical alignment for the cell contents, and is one of top, bottom, middle or step.

A cell step alignment vertically aligns the first line of content in a cell with the last line of content in the cell of the previous column.

In the following diagram, the content of each cell in the table on the left is rendered using the default cell vertical alignment. In the table on the right, the content of each cell is rendered using a step vertical alignment: