Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2011, 10:15 PM   #1
JoanneM
Member
JoanneM began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Nov 2011
Device: noone
page break in epub on iPad

Hi all. I have an epub which tests with no errors in Flightcrew, which shows fine on a Nook, but which loses the page breaks on an iPad. My css says, in part:

<style type="text/css">
h1 {font-weight: bold; text-align: center; text-indent: 0px}
h2 {text-align: center; text-indent: 0px; page-break-before:always}
h3 {text-align: center; text-indent: 0px}
</style>

I use h1 for the book title, h2 for new chapters, and h3 for headers I don't want a page break before.

eg.:

<h1><a id="title-page"/>Title Here</h1>
<p class="center">by</p>
<h3>Author Here</h3>
<h2><a id="TOC"/>Table of Contents</h2>
[and then the toc here]
<h2><a id="start"/>Chapter One</h2>

etc. Except in this case the "chapters" are poetry titles, as it's a book of poetry. I want each poem on its own page, naturally. Why would it look fine on a Nook but not on the iPad? Is there something I have to add for an iPad that won't insert extra page breaks on the Nook? Thanks, all!
JoanneM is offline   Reply With Quote
Old 12-07-2011, 02:22 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,727
Karma: 2117243
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
You could put each chapter in a new XHTML file. Otherwise it is probably another bug in iBooks. Or should I say ignoring the specifications in iBooks?
Toxaris is offline   Reply With Quote
 
Enthusiast
Old 12-07-2011, 09:52 AM   #3
JSWolf
Suspended
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
Posts: 35,392
Karma: 16147088
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
http://www.pigsgourdsandwikis.com/20...ation-and.html

Quote:
Apple came out with version 1.2.1 of the iBooks app yesterday and though I haven't had a chance to look at it carefully, I have been hearing from Twitter that the page-break bug that I mentioned in Page Breaks in iBooks 1.2 —in which the CSS page-break properties had to be in a local stylesheet within the XHTML file instead of in an external CSS file—has been fixed. External CSS now works as it should. Yay.
But if it's not working, the best solution is to have separate XML files for each place where the break is suppose to happen. It's what I do and I don't have to worry about iBooks botching the page breaks.
JSWolf is offline   Reply With Quote
Old 12-07-2011, 09:59 AM   #4
st_albert
Fanatic
st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.st_albert calls his or her ebook reader Vera.
 
Posts: 540
Karma: 64420
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by JSWolf View Post
http://www.pigsgourdsandwikis.com/20...ation-and.html



But if it's not working, the best solution is to have separate XML files for each place where the break is suppose to happen. It's what I do and I don't have to worry about iBooks botching the page breaks.
IMHO this is the only reliable way to force a page break that works across all epub readers.
st_albert is offline   Reply With Quote
Reply

Tags
epub, ipad, page break, page breaks, pagebreak

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mobi to epub - sections cause page break sonyreaderfan Conversion 1 12-02-2011 04:17 AM
Mobi to epub page break mr.ninja13 Calibre 23 08-09-2011 02:06 PM
epub to mobi page break on chapters cybmole Conversion 23 02-23-2011 10:42 AM
Can I fix ePub page break formatting? arcane_scholar Calibre 3 02-02-2011 04:01 PM
iPad Page Break Doesn't support iPad? bala07 Apple Devices 9 11-10-2010 07:21 AM


All times are GMT -4. The time now is 06:17 AM.


MobileRead.com is a privately owned, operated and funded community.