![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Nov 2022
Device: none
|
Images split over two pages
I’m trying to edit an epub that displays many images split over 2 pages when I read it in iOS books or other reader (works fine on a kindle or kindle for iOS for example).
What should I do to avoid having an image split over 2 pages? HTML/CSS that might be interesting below. This container 024 is one of many. <div class="_idGenObjectLayout-1"> <div id="_idContainer024"> <img class="_idGenObjectAttribute-1" src="../Images/image00140.jpeg" alt=""/> </div> </div> #_idContainer024 { display:inline-block; height:639px; width:1200px; } img._idGenObjectAttribute-1 { height:100.00%; min-width:100%; width:100.00%; } div._idGenObjectLayout-1 { text-align:center; } |
![]() |
![]() |
![]() |
#2 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,007
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
You set height OR width to a % (height if a portrait shape, width of landscape) and set the other size to auto. If the image is square you can do % on either.
You can't set both height & width to a % unless you know the screen aspect and the image aspect. I'd avoid as much as 100% on either axis unless maybe something you want to nearly fill the screen. You can only fill the screen completely if the image is the same shape as the screen. Also enclose the image in either its own <p or <div Code:
Fragment of HTML <p class="p-cen"><img src="images/00005.jpg" class="land-imag"/></p> <p class="caption"><span class="bold">THEY WERE ALL THERE</span></p> CSS .p-cen{ border-bottom: 0; border-top: 0; display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; padding-bottom: 0; padding-top: 0; text-align: center; text-indent: 0 } .land-img{ margin-left: auto; margin-right: auto; height: auto; width: 75% } My docx export imported to Calibre does all this except the .land-img CSS will be pixels so I edit it. Edit image css is the only edit I do of the ebook. |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I split up different-sized pages? | MarjaE | 5 | 09-24-2022 10:16 AM | |
Classic Split PDF pages into smaller pages (images into tiles) | Astro | Barnes & Noble NOOK | 4 | 06-12-2020 10:56 AM |
Unable to Insert or Split Pages | ChrisI | Sigil | 14 | 02-14-2018 03:36 PM |
How do I split two pages into one? | Christopher888 | 4 | 11-20-2010 02:21 PM | |
Is there a tool to split pdf pages? | MosFet | Sony Reader | 3 | 06-19-2007 09:48 AM |