Skip to content

Columns

<columns> can be used to display content in multiple columns on the document, e.g. line in a printed newspaper.

To define columns, you need to add as many <column> tags as you would like to have columns. Each column needs to have a width in % or a unit (e.g. mm or cm).

It can only be used within a <body>.

Example

<columns gap="6mm">
    <column width="40%">
        <text>Left Column</text>
    </column>
    <column width="60%">
        <text>Right Column</text>
    </column>
</columns>

Attributes

<columns>

gap (optional)

How much space should there between the columns in pt, mm or cm e.g. gap="8mm".

spaceBefore (optional)

Space before the columns in pt, mm or cm.

spaceAfter (optional)

Space after the columns in pt, mm or cm.

<column>

width

The width of the column. Can be in pt, mm, cm, or as a percentage (e.g. width="40%").

A <column> can contain the following elements: <checkbox>, <field>, <image>, <keepTogether>, <line>, <rect>, <space>, <table>, and <text>.