I wrote the following JavaScript based on Aaron Hill's answer:
//Add a div to each table cell so these don't break across pages when printed //See http://stackoverflow.com/a/17982110/201648 $(document).ready(function () { var ctlTd = $('.dontSplit td'); if (ctlTd.length > 0) { //console.log('Found ctlTd'); ctlTd.wrapInner('<div class="avoidBreak" />'); } });
Where dontSplit is a table class where you don't want td to be paginated. Use this with the following CSS (again, attributed to Aaron Hill):
.avoidBreak { page-break-inside: avoid !important; margin: 4px 0 4px 0; }
This seems to work fine in the latest version of Chrome.
Aaron Newton Sep 12 '13 at 0:27 2013-09-12 00:27
source share