简体   繁体   中英

Align table in the middle in dompdf

I need help in dompdf. I have a table that will be exported to PDF using dompdf according to the data user will enter. I need that the table will be automatically aligned in the middle of the page if the use inter few data so that the table height is not fitting the page size.

I know how to render PDF using dompdf but, how to make table to Automatically aligned in the middle of the page size? Any help is highly appreciated.

All cells of the table set style like this:

table th, table td{
    vertical-align: middle;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM