Table Syntax and Attribute Reference
Attribute | Description | Value | Description | Notes |
---|---|---|---|---|
|
defines the title label on a single table |
user-defined |
||
|
comma-separated list of column specifiers |
specifiers |
Specifies the number of columns and the distribution ratio and default formatting for each column. See Add Columns to a Table for details |
|
|
data format of the table’s contents |
|
cells are delimited by |
|
|
cells are delimited by a colon ( |
|||
|
cells are delimited by a comma ( |
|||
|
cells are delimited by a tab character (aka tab-separated values) |
|||
|
character used to separate cells |
|
default for top-level tables |
|
|
default for nested tables |
|||
user-defined |
any single character or |
|||
|
draws a border around the table |
|
border on all sides (default) |
|
|
border on top and bottom ends |
|||
|
no borders |
|||
|
border on left and right sides |
|||
|
draws boundary lines between rows and columns |
|
draws boundary lines around each cell (default) |
|
|
draws boundary lines between columns |
|||
|
draws boundary lines between rows |
|||
|
no boundary lines |
|||
|
controls row shading (via background color) |
|
no rows are shaded (default) |
|
|
even rows are shaded |
|||
|
odd rows are shaded |
|||
|
row under the mouse cursor is shaded (HTML only) |
|||
|
all rows are shaded |
|||
|
horizontally aligns a table with restricted width |
|
aligns to left side of page (default) |
Not recognized by Asciidoctor.
To align the table, use an alignment role (e.g., |
|
aligns to right side of page |
|||
|
horizontally aligns to center of page |
|||
|
floats the table to the specified side of the page |
|
floats the table to the left side of the page (default) |
Applies to HTML output only.
Must be used in conjunction with the table’s |
|
floats the table to the right side of the page |
|||
|
horizontally aligns all of the cell contents in a table |
|
aligns the contents of the cells to the left (default) |
Not recognized by Asciidoctor.
Define instead using column or cell specifiers (e.g., |
|
aligns the contents of the cells to the right |
|||
|
aligns the contents to the cell centers |
|||
|
vertically aligns all of the cell contents in a table |
|
aligns the cell contents to the top of the cell (default) |
Not recognized by Asciidoctor.
Define instead using column or cell specifiers (e.g., |
|
aligns the cell contents to the bottom of the cell |
|||
|
aligns the cell contents to the middle of the cell |
|||
|
rotates the table |
|
rotated 90 degrees counterclockwise |
Equivalent to setting the rotate option, which is preferred. DocBook only. |
|
comma separated list of option names |
|
promotes first row to the table header |
header and footer rows are omitted by default |
|
promotes last row to the table footer |
|||
|
allows the table to split across a page (default) |
Mutually exclusive. DocBook only (specifically for generating PDF output). |
||
|
prevents the table from being split across a page |
|||
|
disables explicit column widths (ignores distribution ratios in |
|||
|
Prints the table in landscape |
Equivalent to setting the orientation to landscape. DocBook only. |
||
|
comma-separated list of role names |
|
floats the table to the left margin |
The role is the preferred way to specify the alignment of a table with restricted width.
May be specified using role shorthand (e.g., |
|
floats the table to the right |
|||
|
aligns the table to center |
|||
|
stretches an autowidth table to the width of the page |
|||
|
the table width relative to the available page width |
user defined value |
a percentage value between 0% and 100% |