:data-uri:

Asciidoc(tor) Reference

Table with 2 columns left aligned with header

cols=“2*<”, options=“header”

.Table Title |=== | Column 1 | Column 2 | Text 1 | Text 1 | Text 2 | Text 2 | Text 3 | Text 3 |===

Remarks :

  • Columns can be aligned to the top +++(<)+++, middle +++(^)+++, or bottom +++(>)+++

  • To vertically align the content to the middle of the cells in all of the columns, add a . and then the ^ operator after the multiplier : +++[cols=“2*.<”]+++

Table with colored header

cols=“2*<”, options=“header”

.Table Title |=== | Column 1 {set:cellbgcolor:red} | Column 2 {set:cellbgcolor:red} | Text 1 {set:cellbgcolor:white} | Text 1 | Text 2 {set:cellbgcolor:grey} | Text 2 | Text 3 {set:cellbgcolor:white} | Text 3 |===

Remark:

  • should be better to define colors using css instead of +++{set:cellbgcolor:red}+++