Textpattern Help
Table cells are divided with a vertical bar |
|This|is|a|simple|table| |This|is|a|simple|row|
Table attribute syntax
(class)
(#id)
{style}
[lang]
< align left
> align left
= center
<> justify
^ top – middle
~ bottom
_ header cell
\2, \3 etc. column span
/2, /3 etc. row span
A set of attributes to be applied to an entire table must appear immediately before the table, on its own line, followed by a dot:
table{border:1px solid black}.
|This|is|a|row|
|This|is|a|row|
Attributes to be applied to an entire row must appear at the beginning of the row’s line, followed by a dot and a space:
{background:#ddd}. |This|is|a|row|
Cell attributes must fall between the left cell divider and a dot-space:
|{background:#ddd}. Cell with gray background|
|\2. Cell spanning 2 columns|
|/3. Cell spanning 3 rows|
|>. Right-aligned cell|