View Single Post
Old 07-14-2011, 12:11 PM   #4
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by coldplayplayer View Post
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.
page-break-before is fine. I have used this without problems on many eBooks and as I am not div happy I seldom use them. Others seem to use nothing else.

Dale
DaleDe is offline   Reply With Quote