Version 5.9.8

Column

Set the properties of a column in the table.

Child elements

(none)

Parent elements

Case, Columns, ForAll, Function, Loop, Otherwise, SetVariable, Until, While

Attributes

align (optional)
The horizontal alignment of the table cells in this column. Can be overridden in a cell (Td).
  • left: The table cells are left aligned.
  • center: The table cells are horizontally centered.
  • right: The table cells are right aligned.
background-color (text, optional)
All cells in this column have this background color.
minwidth (length, optional, since version 4.13.9)
Minimum width of the column. Argument can be a number (in grid cells) or a length (e.g. 2cm). Applies to all kinds of column widths.
padding-left (length, optional, since version 3.1.8)
Set the left padding for the column
padding-right (length, optional, since version 3.1.8)
Set the right padding for the column
valign (optional)
The vertical alignment of the cells in this column. Can be overridden in a cell (Td).
  • top: The table cells are top aligned.
  • middle: The table cells are vertically centered.
  • bottom: The table cells are aligned at the bottom.
width (Number, length, percentage or *-numbers, optional)
Width of the column. Argument can be a number (in grid cells), a length (e.g. 2cm), a percentage of the table width (e.g. 25%), a -number (e.g. 4, 1.5* or just *), the keyword min (width of the widest word) or max (natural width of the content) or ? (natural width of the content, with stretch="max" a share of the remaining width in the ratio of the natural widths). Lengths in em refer to the font size of the table. A column without width is treated like ?.

Example

See the example at Columns.

See also

Table, Columns, Tables, Controlling column widths