columnbreak
(mPDF ≥ 1.0)
columnbreak – Start a new Column
Description
<columnbreak />
Start a new Column in the document. Columns must be set using SetColumns() or <columns>. Height justification for the Columns is disabled when column breaks are set explicitly.
Note: Columns are incompatible with (and automatically disable): borders for block-level elements (DIV, P etc), table rotation, and collapsible margins for blocks e.g. top and bottom margins for a DIV will not collapse (default) at the top/bottom of a column.
Attributes
No attributes
Examples
<?php
$mpdf = new \Mpdf\Mpdf();
$mpdf->SetColumns(2);
$mpdf->WriteHTML('
Some text...
<columnbreak />
Next column...
');
$mpdf->Output();
See Also
- AddColumn() - PHP equivalent to
<columnbreak>
- SetColumns() - Control the use of multiple columns on the page
- <columns> - Control the use of multiple columns on the page