Quote:
Originally Posted by Jellby
That's true, and it is an accepted (but optional) behaviour in the spec.
There are other possible methods. Only margin is thrown away after a forced pagebrak. You can get space through padding, or by having the pagebreak in a previous element, like this:
Code:
<div class="pagebreak"/>
<h2>Chapter 5</h2>
where div.pagebreak has "page-break-before: always" and h2 has some top margin.
Whether this is possible to generate directly from ID, that's a different matter.
|
This doesn't appear to work on the Kobo. With the class="pagebreak" the header is at the top of the page despite the margin-top setting on the header (and with with the text all the way at the top its a bit squashed).
Using separate files works ok.