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

shing_shing's avatar

Dompdf page break issue

When my table exceeds the page size, it automatically displays on the next page. I've done all page-break CSS methods and still unfortunate.

The mystery stays unsolved. https://drive.google.com/open?id=1GJvP18t_9JdBgsWjZyRWDmYH6tlUSv8u

0 likes
3 replies
fylzero's avatar
fylzero
Best Answer
Level 67

@shing_shing This is the answer. Maybe change what element you're applying it to. Start from the outer and just keep adding it to inner elements until it solves the issue.

page-break-inside: avoid;

1 like

Please or to participate in this conversation.