DITA to PDF Using HTML5 and CSS: Table Row Breaks
Posted: Sun Oct 10, 2021 7:08 pm
Hello,
I have been studying your Oxygen PDF Chemistry user guide and researching on the internet, but I cannot figure out how to prevent rows from breaking across a page. Can you help me understand what to set in the CSS to prevent this (a row should start on the next page if it is going to break across a page):
I added this to the CSS but that did not prevent the page break:
/*prevent-table-row-page-break*/
@media print {
row {
page-break-inside: avoid;
}
}
Also, how would I add more padding between a table and the top of the page?
Thanks!
Pat
I have been studying your Oxygen PDF Chemistry user guide and researching on the internet, but I cannot figure out how to prevent rows from breaking across a page. Can you help me understand what to set in the CSS to prevent this (a row should start on the next page if it is going to break across a page):
I added this to the CSS but that did not prevent the page break:
/*prevent-table-row-page-break*/
@media print {
row {
page-break-inside: avoid;
}
}
Also, how would I add more padding between a table and the top of the page?
Thanks!
Pat