05-15-2013, 11:22 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2013
Device: I-Pad 1 & Kindle Fire
|
How to solve EPUB3/EPUB2 rendering issue on Ipad
Please refer the attachment.
I have created a sample EPUB3 ebook in which box content not displayed properly and box displayed as two separate boxes on Ipad. Kindly guide me how to solve this issue. Is this a bug of Ipad? Note: Same issue occur on portrait mode. Codes used: HTML ----- <p class="image1"><img src="../images/p29.jpg" alt=""/></p> <p class="h2c">Being back ... childhood. </p> CSS ---- .image1 { font-size: 100%; margin-top: 1em; margin-bottom: 2em; margin-left: 0em; margin-right: 0em; text-align: center; text-indent: 0em; } .h2c { margin-top: 1em; margin-bottom: 0.5em; margin-left: 3em; margin-right: 0em; text-align: left; width:350px; text-indent: 0em; font-family:sans-serif; background-color: #FFDF00; border-top-right-radius:1em; padding:0.5em; display:block; } Regards, E-Books lover |
05-16-2013, 04:13 AM | #2 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
"display: block" does not mean it won't break across pages, and it's the default for <p> anyway. You are looking for "page-break-inside: avoid", but I have no idea if iBooks (I guess you mean iBooks, rather than iPad) supports it.
|
05-16-2013, 08:07 AM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: May 2013
Device: I-Pad 1 & Kindle Fire
|
Thanks for the suggestion, iBooks supports "page-break-inside: avoid" CSS property and rendered well.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Confused! XHTML, HTML, HTML5, EPUB2, EPUB3??? | carlosbcg | ePub | 29 | 02-23-2013 08:32 PM |
refined metadata in epub2? | mzmm | ePub | 2 | 11-14-2012 02:52 PM |
JAVASCRIPT support in ePub2/ePub3 | Raja1205 | ePub | 7 | 09-03-2012 07:48 AM |