Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

delyn12's avatar

Dom pdf table border bottom

Good day everyone. I would like to ask why dompdf cut off my table at the last part. I want the table border-bottom to be closed before jumping to new page. Can anyone render help on how to solve this?

0 likes
2 replies
LaryAI's avatar
Level 58

You can try adding the following CSS to your table:

table {
    page-break-inside: avoid;
}

This should prevent the table from breaking across pages.

delyn12's avatar

@LaryAI Thanks for your response. I just tried that, the table jumped to a new page, and first page was empty.

Please or to participate in this conversation.