12-03-2014, 09:09 AM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Floating image with caption on its side
Hi
I managed to do this on a training book but when I visualize it with Calibre, it happens more than once that the image is in one page and the caption on the page before or after, which ruins the intended effect. Even closing them within the same div container with "page-break-inside: avoid;" does not do the trick. Does someone has a code to achieve a similar thing? (see screenshot) http://www.hostingpics.net/viewer.ph...1flottant.png] http://hpics.li/a7bc9e7 Last edited by roger64; 12-03-2014 at 09:54 AM. |
12-03-2014, 10:20 AM | #2 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
If it looks impossible to do, I am thinking at two other ways:
1- putting together in a cadre the image and the caption (top or down), but this should be code-heavy and probably unstable 2- maybe letting the image floating alone (this is easy) and providing the caption with an hyperlink. There should be no problem clicking on the image even with a standard Kobo... |
Advert | |
|
12-03-2014, 12:46 PM | #3 |
Interested in the matter
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
|
In ADE this works.
CSS: Code:
img.foto2 {width: 100%; margin-left: -1em;} span.foto2 { float: left; page-break-inside: avoid; width: 50%; padding-top: 0.2em; margin-right: 0.2em; padding-bottom: -0.5em; font-size: 0.8em; } Code:
<p><span class="foto2"><img class="foto2" alt="04" src="../Images/04.jpg"/>Y esto y lo otro, y lo de más allá.</span>En aquel lugar, una punta avanzada permitía dominar el curso del Orange, a partir de la catarata, hasta una distancia de varias millas.</p> |
12-04-2014, 12:25 AM | #4 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
Thank you for your help and sharing your code. I will try it. |
12-04-2014, 04:54 AM | #5 |
Fanatic
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
For small images and long captions I simply use the TABLE
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to...make a caption part of an image. | rosshalde | ePub | 18 | 11-28-2014 06:01 AM |
keeping image and caption together | whbenson | ePub | 0 | 08-20-2013 06:19 PM |
Caption, distance from image | GraciousMe | Sigil | 10 | 10-30-2012 11:12 AM |
L shape image with caption? | LostSock | ePub | 5 | 09-08-2011 07:24 PM |
Center Image and Caption | SamL | ePub | 11 | 08-12-2011 09:27 AM |