View Single Post
Old 01-20-2009, 10:10 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,402
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can force page breaks at (almost) any point in the HTMl, but you cannot prevent page breaks from happening if the content between two of your forced page breaks is longer than the screen length, if you think about it for a minute, you'll understand why.

To force page breaks at <hr> tags use

Code:
<style type="text/css">
hr {page-break-after:always;}
</style>
in the header of your HTML
kovidgoyal is offline   Reply With Quote