![]() |
#91 | |
Connoisseur
![]() Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
|
Quote:
I think it tries not to break images by default. Seems like -webkit-column-break-inside, page-break-inside and break-inside are not supported, so it’s difficult to keep things together. |
|
![]() |
![]() |
![]() |
#92 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#93 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Code:
.breakPage { page-break-after: always; break-after: always; -webkit-column-break-after: always; } |
|
![]() |
![]() |
![]() |
#94 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Well, it can be good news. If the issue is only affecting my system then is good to know that something is altering the way that the epubs are being displaying in my Arch.
|
![]() |
![]() |
![]() |
#95 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Quote:
Last edited by RbnJrg; 06-17-2025 at 05:18 PM. |
||
![]() |
![]() |
![]() |
#96 | |
Connoisseur
![]() Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
|
You're welcome
![]() This renderer has plenty of issues, so this is a great opportunity for me to figure out workarounds or crucial details that I've been missing. Quote:
![]() Both issues might be caused by having margins (in %) at the top of a page –*are they no longer supported in Epub3? I had to use 100vh to get a full page image. With 100% height I'd get a line of text under the image. |
|
![]() |
![]() |
![]() |
#97 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#98 |
Connoisseur
![]() Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
|
I just gave it a try: A margin in em causes the same problem. With no margin, the empty pages disappear.
That doesn't fix the split lines of text, though. |
![]() |
![]() |
![]() |
#99 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,243
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I suspect what Jon wants is to set the margin to 0em (or rem).
|
![]() |
![]() |
![]() |
#100 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,528
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#101 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,771
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
1. In your .xhtml file: Code:
<figure> <div class="picture"> <svg xmlns="http://www.w3.org/2000/svg" height="100%" width="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 xxx yyy" xmlns:xlink="http://www.w3.org/1999/xlink"><image width="xxx" height="yyy" xlink:href="../Images/your_image.jpg"/> </svg> </div> </figure> Code:
figure { float: left; display: flex; width: 100%; height: 100%; line-height: 1.2em; /* Or the line-height you are using for <p> */ margin: 0; text-align: center; -webkit-column-break-inside: avoid !important; page-break-inside: avoid !important; break-inside: avoid !important; } .picture { float: left; display: flex; align-items: center; justify-content: center; width: 100%; line-height: 1.2em; box-sizing: border-box; margin: 0; text-align: center; -webkit-column-break-inside: avoid !important; page-break-inside: avoid !important; break-inside: avoid !important; overflow: hidden !important; } .picture svg { display: block; margin: auto; overflow: hidden !important; height: 100vh !important; } PS: Of course, this is epub3 code. Last edited by RbnJrg; 06-17-2025 at 08:10 PM. |
|
![]() |
![]() |
![]() |
#102 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,354
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I've always understood that units don't matter; if you set 0 then it is zero regardless of the units used, or no units at all. The only caveat would be if the device didn't understand the unit, then it could/would ignore the selection entirely?? So if you just set margin:0 without any units, then you are good to go! |
![]() |
![]() |
![]() |
#103 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#104 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#105 | |
Connoisseur
![]() Posts: 89
Karma: 10
Join Date: Dec 2024
Device: Tolino Shine 5
|
continued from here: https://www.mobileread.com/forums/sh...55#post4519655
Quote:
Using padding instead of margin will work in most cases. And if I need an actual margin, I can always place a zero height div at top of the page... That does fix the issue. Last edited by Falkor; 06-18-2025 at 03:51 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS Styling based on class/existing styling | 1ily | Calibre | 8 | 03-17-2025 06:37 AM |
Incorrect styling with specific CSS | quiris | Marvin | 9 | 07-04-2016 01:04 PM |
Missing CSS properties | roger64 | KOReader | 0 | 06-01-2016 06:39 AM |
inspect image properties /replace image | cybmole | Sigil | 6 | 02-05-2013 12:46 PM |
Unsetting properties in CSS | Jellby | ePub | 2 | 06-03-2009 04:29 AM |