The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to print tables? Reply To: How to print tables?


5 years later and I still have the same problem.

I tried:

table, tr, td, th { page-break-inside: avoid; }

I even tried:

display: block;
page-break-inside: avoid;


<th><div class="noBreak">...</div></th>
<td><div class="noBreak">...</div></td>

That didn’t work. I tried wrapping every tr in a tbody tag.
That didn’t work and it broke the zebra stripe.

Surely someone has solved this problem somewhere…