Home › Forums › CSS › How to print tables? › Reply To: How to print tables?
December 3, 2015 at 2:18 pm
#235573
Participant
5 years later and I still have the same problem.
I tried:
table, tr, td, th { page-break-inside: avoid; }
I even tried:
.noBreak{
display: block;
page-break-inside: avoid;
}
and
<tr>
<th><div class="noBreak">...</div></th>
<td><div class="noBreak">...</div></td>
</tr>
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…