How to avoid page breaks inside a table row?

Use the following rule in CSS.

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