![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 37
Karma: 493532
Join Date: May 2010
Device: ipad
|
keeping image and caption together
Expanding on a solution PageLab posted for a different iBooks problem in
https://www.mobileread.com/forums/sho...d.php?t=172771, I've been using code like the following to keep images with their captions together on the same page: XHTML Code:
<p><span class="sidebar"><img alt="" class="scale" src="../Images/image.jpg" />caption</span>paragraph</p> Code:
.sidebar { page-break-inside: avoid; display: inline-block; margin: 0 .5em 0 0; float: left; width: 50%; text-align: center; font-size: .8em; font-style: italic; } img.scale { max-width: 100%; /* images never scaled up */ width: 100%; } -Bill |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to be sure a full page image+ caption is not split between 2 pages? | silviolorusso | ePub | 9 | 07-12-2013 08:24 PM |
Keeping caption and illustration together | John123 | ePub | 4 | 12-02-2012 09:19 AM |
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 |