Thread: Header Spacing
View Single Post
Old 02-17-2014, 11:17 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,571
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Sometimes you cannot use padding (if you have a background or top border). In that case you can add a dummy element to create the pagebreak:

Code:
<p>Some text at the end of a page.</p>

<div class="pagebreak"/>

<h2>Title, with top margin retained</h2>
Then you just style div.pagebreak to be invisible (heigh: 0; margin: 0) and force a pagebreak (page-break-before: always). In some renderers you may have to add some content to the <div> (&nbsp;).
Jellby is offline   Reply With Quote