View Single Post
Old 06-20-2024, 07:30 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,615
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by PilcrowandStanza View Post
- keeping headers will following paragraph
Ensure each chapter is split into its own xhtml file in the epub. That ensures each chapter starts on a fresh page.
Or, you could wrap the header and the first couple of paragraphs in the code mentioned below, but not really the best way.

Quote:
Originally Posted by PilcrowandStanza View Post
- keeping short tables from breaking between pages
You could wrap the table in a div. eg...

Code:
<div class="nopagebreak">
  <table>
    ....
  </table>
</div>
And the css is...
Code:
.nopagebreak {
  break-inside: avoid;
  page-break-inside: avoid;
}
Of course, you most likely will have a large gap on the preceding page as a pagebreak is forced to keep the table together.
Karellen is offline   Reply With Quote