06-04-2010, 12:03 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2010
Device: ipad
|
captions and images together
Hi everyone,
Is there any way to prevent a caption and the image it goes with from sepparating in different pages in Ibooks (Ipad)? I would like to keep together image and caption in the same page as far as possible (and avoid merging text and photo in one image). Tnx! |
06-04-2010, 12:35 PM | #2 |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
This seems like a tough issue for ePubs- the author here: http://web.me.com/david.mundie/Linde..._for_iPad.html just ended up going with the JPEG idea.
|
Advert | |
|
06-04-2010, 12:50 PM | #3 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
doesn't ibooks support page-break-after:avoid ?
|
06-04-2010, 12:57 PM | #4 |
Member
Posts: 19
Karma: 10
Join Date: Jun 2010
Location: Massachusetts
Device: iPad
|
I just posted about this topic on the ePub topic.
I included my css and code snippet and am working on an iPad. It does not seem to work. I would appreciate someone trying the code on another device and report back. Perhaps my code is flawed. In any case, I'm giving it one last try before simply adding the captions to the images themselves. cheers, Michael |
06-04-2010, 04:25 PM | #5 |
Member
Posts: 19
Karma: 10
Join Date: Jun 2010
Location: Massachusetts
Device: iPad
|
Well, as unpalatable as the it seemed, simply including the caption in the figure works very well. The text is clear and resizes with the image in portrait or landscape orientation on the iPad. If a pure css solution comes along, I'll revert back but this works quite well.
regards, Michael |
Advert | |
|
06-05-2010, 04:27 AM | #6 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2010
Device: ipad
|
Yes, I've just tried the page-break-after:avoid and it works fine in ibooks.
Thank you! |
06-05-2010, 07:23 AM | #7 |
Member
Posts: 19
Karma: 10
Join Date: Jun 2010
Location: Massachusetts
Device: iPad
|
Thanks detede,
Would you mind looking at what I did (in the thread linked to above) or share your code? I have not been able to get this to work. I've been coding css and html since the beginning of time so I am sure it some silly thing I have not taken in to account then. cheers, Michael |
06-11-2010, 02:37 AM | #8 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2010
Device: ipad
|
Hi Eclecticguy,
Actually I have been doing more tests in Ibooks and you are right: it doesn't work. It does (or seems to) in some cases, but depending on the size of your fonts in some cases it separates the image and the caption. So far I haven't found if there is some regularity in this behaviour (wheter it depends on how long is the caption, for instance). I'm going to try to find out and let you know... |
06-11-2010, 07:19 AM | #9 |
Member
Posts: 19
Karma: 10
Join Date: Jun 2010
Location: Massachusetts
Device: iPad
|
Thanks detede. I concluded that adding the caption to the image is the easiest way.
regards, Michael |
06-14-2010, 06:31 PM | #10 |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
Liz Castro has an update on this issue:
http://www.pigsgourdsandwikis.com/20...r-yes-you.html Complete with sample ePubs to try it yourself! |
06-14-2010, 08:40 PM | #11 |
Member
Posts: 19
Karma: 10
Join Date: Jun 2010
Location: Massachusetts
Device: iPad
|
That is fantastic kjk, thanks! I left a thank you on Liz's site. This worked on my test file for both images and text. Now I have to reconvert all of the images I had embedded captions in to plain images. Shouldn't take too much time and there are other benefits like:
captions scale with text size user selected background colors will look much better user selected text colors will apply to the captions I can prevent headers from breaking at the bottom of a page good stuff! Cheers, Michael |
06-14-2010, 09:00 PM | #12 | |
本の虫
Posts: 242
Karma: 344
Join Date: May 2008
Location: USA
Device: Kindle3, DXG, Fire · iPad, iPod
|
Quote:
Earlier today I finished and sent of to the author an iBook-ready ePub wherein I needed to do something about two images, each with captions, that were side-by-side. I ended up making it all one image. That solution works fine, but it takes more work and time than simply enclosing with a div. |
|
Tags |
captions, ibooks, images |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML + Images = MOBI without Images | SunLight | Amazon Kindle | 5 | 08-25-2012 02:27 PM |
Figure captions | amoroso | Sigil | 6 | 07-13-2010 02:29 PM |
Images | Hunterpub | Introduce Yourself | 5 | 04-13-2009 07:26 PM |
No images | anelson87 | Sony Reader | 1 | 01-03-2009 05:00 PM |
images | junkml | Feedback | 4 | 04-09-2007 05:32 PM |