View Single Post
Old 05-24-2012, 03:00 PM   #8
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Jellby View Post
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.
meme is offline   Reply With Quote