View Single Post
Old 07-14-2011, 06:05 AM   #2
coldplayplayer
Junior Member
coldplayplayer began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jul 2011
Device: iPad / iPhone
I managed to get this working today. It may not be the correct way of doing it, but it did work for me.

After I've exported from InDesign as an ePub, I use Calibre to Tweak it. I edit my XHTML and CSS with Notepad++ on the PC or Text Wrangler on my MAC.

In the XHTML, at every point I want to force a page break, I insert the following code:
<h1></h1>


In my CSS for the template I add the following code:
h1{
page-break-before: always;
}

Unsure if page-break-before or page-break-after is the better option. I'm still a NewB when it comes to ePubs so no doubt one of the gurus out there has a better fix, but like I say it definitely worked for me today.
coldplayplayer is offline   Reply With Quote