Irina Mitrova
09/24/2024, 7:21 AMCeligo AI
09/24/2024, 7:21 AMAI generated answer (using internal Slack threads):In Advanced PDF templates, to keep some of the rows in a table on the same page, you can use the CSS property
page-break-inside: avoid;
. This property sets whether a page break should occur inside a block of content. By setting it to avoid
, it will try to prevent a page break from occurring within the element.
However, please note that this property is not always fully respected by the PDF rendering engine. If the content is too large to fit on the page, a page break will still occur.
Here is an example of how you can use it:
html
<table style="page-break-inside: avoid;">
<!-- Your table rows here -->
</table>
Remember to apply this style to the table that you want to keep together on one page. If you have multiple tables and you only want to apply this to some of them, you might need to add a class or id to those tables and then apply the style to that class or id.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/24/2024, 7:21 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.838608146
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830945373
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830189824
Celigo AI
09/24/2024, 7:21 AM