Forum How do I...?

Automatic center alignment for landscape table.

How to vertical centering the rotate table in PDF layout.

table[class="landscape"] {height:486pt;width:648pt;page-break-inside:avoid;page: wide;margin:0pt 0pt 0pt 0pt;vertical-align:middle;text-align:center;}

@page wide {
prince-rotate-body: -90deg;
  1. landscape table.pdf271.3 kB
You might have some luck putting the table in a flex item and using align-self: center (or align-items: center on the flex container). It seems that the page property does not apply inside flex items, however, so that will need to be put on the flex container instead of the table.