![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2012
Device: ipad, kindle, adroid
|
Page breaks lost after upload to iTunes Producer
I need the help of a epub to ibooks guru......
I have a lots of sections in my new epub 'Sporades Sailing pilot' which is now viewable in Ibooks. Its a guide type book and would be really difficult to cut it into hundreds of different xhtml pages to keep headings at the top of a new page. Most sections have a Heading <h4> then followed by an SVG map images, then some writing unerneath with another thumbnail jpeg floating around in the text. Before i submitted the epub to Ibooks it showed fine in iphone and ipad and page breaks work on other platforms. However after uploading to Ibooks the page breaks have done their own thing! Now i am getting the Heading at the end of the previous page, if there is enough space underneath i get the SVG image, if not, that image starts at the top of another page, then the text and thumbnails. Its all a bit 'disjuncted' with white space. - i was originally wrapping the <h4> heading using the <div class="header"> tag on the xhtml page with {'page-break-before always'} on the CSS stylesheet. However, after it was loaded onto ibooks this page break functionality was lost..... should i extend this div tag to include the first svg image to keep them togther? or - i have read that i your wrap the heading and everything else in that section in div tags with {display: inline-block} in the CSS that this forces the heading onto a new page? However will this work if the content of that section is spread over several screen pages? or - Or should i use <div style="page-break-before:always;"></div> directly on the xhtml page and forget about CSS stylesheet or - perhaps use individual commands at the head of each xhtml page like… <style type="text/css"> h4 {page-break-before: alway}></style>, to break before section headings? or - am i barking up the wrong tree Basically i'm looking for a way to force page breaks that will work after processing on Itunes producer.......... slainte dave Last edited by dolphin dave; 05-27-2012 at 06:25 AM. Reason: spelling |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Having something like this in your CSS stylesheet should be enough:
h4 { page-break-before: always; } No need to add a wrapping <div> or anything. But of course, it depends on reading software obeying it. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2012
Device: ipad, kindle, adroid
|
page breaks
Jellby,
Thanks for quick reply... I have tried using a h4 { page-break-before: always; } on the CSS stylesheet without the <div> tags, but still get the section headings orphaned on the previous page. Dont get me wrong, it looks great when i test it on the iphone, ipad and on the browser but after have uploaded it, via itunes producer, it goes wonky and orphans appear. I think am going to try the inline block command with the h4 { page-break-before: always; } in the CSS stylesheet, see if that works. Its only with ibooks that have this problem, page breaks working fine and looks great on kindle and digital editions.... still scratching my head.... dave |
![]() |
![]() |
![]() |
#4 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Can you see what is the result after your upload? I mean the code inside the (pseudo-)ePub, to see if the process changed anything.
Where are you trying the resulting ePub? In ibooks? Do we know if ibooks supports soft pagebreaks? |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If you place each header in a separate XHTML file, it will be on a new page anyway. A special DIV should not be necessary. It might be that iBooks doesn't support page-break-before. Have you tested you ePUB with ADE?
|
![]() |
![]() |
Advert | |
|
![]() |
Tags |
breaks, epub, inline block, itunes producer, page |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iTunes Producer Error | SamL | ePub | 10 | 07-11-2012 03:51 PM |
Any publishers using Itunes producer out there? | flfpress | Apple Devices | 2 | 05-27-2012 06:30 AM |
iTunes Producer Error -- In need of help, please! | DETACG | Apple Devices | 1 | 06-30-2011 07:34 AM |
Using Itunes Producer 2.4 | DB&C | ePub | 4 | 06-29-2011 02:29 PM |
My experiments with using a G3 iBook to run iTunes Producer. | delphidb96 | Apple Devices | 4 | 10-09-2010 03:28 PM |