Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-03-2014, 09:09 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
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.
roger64 is offline   Reply With Quote
Old 12-03-2014, 10:20 AM   #2
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
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...
roger64 is offline   Reply With Quote
Advert
Old 12-03-2014, 12:46 PM   #3
jbacelar
Interested in the matter
jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.
 
jbacelar's Avatar
 
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
In ADE this works.

Click image for larger version

Name:	Prueba.png
Views:	197
Size:	195.0 KB
ID:	131919

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;
}
Text:
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>
jbacelar is offline   Reply With Quote
Old 12-04-2014, 12:25 AM   #4
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
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.
roger64 is offline   Reply With Quote
Old 12-04-2014, 04:54 AM   #5
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
For small images and long captions I simply use the TABLE
Ghitulescu is offline   Reply With Quote
Advert
Reply


Forum Jump

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


All times are GMT -4. The time now is 09:20 PM.


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