Forum How do I...?

Table Page Break With Condition

martirosyan.kar
Hi team,

Is there a way to break the page in the way that the last 2 rows of a table go to the next page.
The problem is we don't want to have only one row on the second page. When only one row is going to be on the second page, can we take also the second one.

Thank You.
mikeday
You can apply this rule:
tr:last-of-type { page-break-before: avoid }