The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to print tables?
Say you have a table containing rows enough to span two A4 pages. When I print in FF/Mac 3.6, IE7 & IE8 page two just comes out blank, the first page cutting the table off when there isn’t more space.
The specification says it can not break when using:
But only Opera supports this feature. What to do?
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…