Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-04-2025, 07:03 PM   #61
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by DNSB View Post
The !important tag allows you to override other settings even if they have higher specificity. OTOH, only use !important when it is absolutely needed since overuse can make debugging a PITA. At one time, I was editing a stylesheet where virtually every line ended in !important; and it made figuring out what was going on no fun. I finally ended up removing the !importants and then adding 1 set back which kept a button from changing background colour.
Very right! In the case mentioned above I employed the !important tag, it was only for the following properties (because PocketBook has issues to handle them):

Code:
-webkit-column-break-inside: avoid !important; 
break-inside: avoid !important; 
page-break-inside: avoid !important;
Your answer make me see that my answer was ambiguous; I didn't employ the !important tag in all the properties.
RbnJrg is offline   Reply With Quote
Old 06-05-2025, 04:34 AM   #62
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RbnJrg View Post
Very right! In the case mentioned above I employed the !important tag, it was only for the following properties (because PocketBook has issues to handle them):

Code:
-webkit-column-break-inside: avoid !important; 
break-inside: avoid !important; 
page-break-inside: avoid !important;
Your answer make me see that my answer was ambiguous; I didn't employ the !important tag in all the properties.
If it doesn't fiit on the page, it's either going to drop to the next page or it's going to flow off of the page, This is why most page breaks are useless.
JSWolf is offline   Reply With Quote
Old 06-05-2025, 06:55 AM   #63
Slevin#7
Connoisseur
Slevin#7 began at the beginning.
 
Posts: 61
Karma: 10
Join Date: May 2025
Device: iPad
Quote:
Originally Posted by RbnJrg View Post
Code:
-webkit-column-break-inside: avoid !important; 
break-inside: avoid !important; 
page-break-inside: avoid !important;
Also, can you tell me, why you use
Code:
-webkit-column-break-inside
instead of
Code:
-webkit-page-break-inside
which would more likely match the intention of the other properties?
Slevin#7 is offline   Reply With Quote
Old 06-05-2025, 07:40 AM   #64
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Slevin#7 View Post
Also, can you tell me, why you use
Code:
-webkit-column-break-inside
instead of
Code:
-webkit-page-break-inside
which would more likely match the intention of the other properties?
First at all, because "-webkit-page-break-inside" doesn't exist and second, because ereaders based on Readium/Webkit to display the epub as unique pages, split (internally) in columns the full xhtml file that is showing.
RbnJrg is offline   Reply With Quote
Old 06-05-2025, 07:47 AM   #65
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by JSWolf View Post
If it doesn't fiit on the page, it's either going to drop to the next page or it's going to flow off of the page, This is why most page breaks are useless.
The images fit on the page but in some ereaders (for example Foliate for linux) without "-webkit-column-break-inside: avoid" images can be showed half in page and half in the following one, they are not forced to float vertically. All this on epub3 of course.
RbnJrg is offline   Reply With Quote
Old 06-05-2025, 01:15 PM   #66
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RbnJrg View Post
The images fit on the page but in some ereaders (for example Foliate for linux) without "-webkit-column-break-inside: avoid" images can be showed half in page and half in the following one, they are not forced to float vertically. All this on epub3 of course.
I've never heard of any program that splits an image. If the image is too larger for the page, it can get moved to the next page or you won't see some of the image as it's off the page for the bit that don't fit.
JSWolf is offline   Reply With Quote
Old 06-05-2025, 03:21 PM   #67
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by JSWolf View Post
I've never heard of any program that splits an image. If the image is too larger for the page, it can get moved to the next page or you won't see some of the image as it's off the page for the bit that don't fit.
No, the image is not too larger for the page, is a half page image. But Foliate (a Linux program), when I use the code to force the image float vertically (so the fragmentation is avoided), it displays the image in the place where it was situated (that is, the image doesn't float) and many time the picture is showed half in page (at the bottom) and half in the next one (at top). For that reason I employ "-webkit-column-break: avoid !important".

EDIT: Here you have the issue with Foliate (in this case with a full page image) and the right way to be displayed with Readium:

a) The issue with Foliate:

Click image for larger version

Name:	One1.jpg
Views:	24
Size:	72.2 KB
ID:	216014 Click image for larger version

Name:	One2.jpg
Views:	25
Size:	55.4 KB
ID:	216015

b) Perfectly showed with Readium:

Click image for larger version

Name:	One full0.jpg
Views:	25
Size:	86.5 KB
ID:	216016 Click image for larger version

Name:	One full1.jpg
Views:	23
Size:	50.6 KB
ID:	216017 Click image for larger version

Name:	One full2.jpg
Views:	24
Size:	79.6 KB
ID:	216018

In both cases the fragmentation is avoided (no blank space) but in Foliate the image was splitted.


However I was able to fix that also in Foliate:

Click image for larger version

Name:	One3.jpg
Views:	26
Size:	78.7 KB
ID:	216023 Click image for larger version

Name:	One4.jpg
Views:	27
Size:	55.0 KB
ID:	216024 Click image for larger version

Name:	One5.jpg
Views:	23
Size:	76.7 KB
ID:	216025

Last edited by RbnJrg; 06-05-2025 at 04:07 PM.
RbnJrg is offline   Reply With Quote
Old 06-08-2025, 05:35 AM   #68
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,033
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by RbnJrg View Post
The images fit on the page but
Really? How do you know what size the screen is, or does the image always scale?
Quoth is offline   Reply With Quote
Old 06-08-2025, 11:40 AM   #69
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,768
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Quoth View Post
Really? How do you know what size the screen is, or does the image always scale?
Because I use a svg wrapper inside a div with a height of 99vh So, no matter how big is the picture, the wrapper makes its magic and the image always will fit inside the space asigned. I've done a lot of work (and testing) on ​​this point, and I can assure you that using an SVG wrapper makes the problems go away. But I don't always set the container div to 99vh in height; depending on the image (mainly half-page images), I set it to 50vh (or 60vh) in height. The thing even works in landscape mode; watch the following examples (with full and half page images):

https://www.mobileread.com/forums/sh...6&postcount=16

https://www.mobileread.com/forums/sh...0&postcount=17

Of course, all of this is done under epub3 together with appropriate code to avoid fragmentation.

Last edited by RbnJrg; 06-08-2025 at 11:43 AM.
RbnJrg is offline   Reply With Quote
Reply

Tags
alignment, img, width

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Alignment Issues AndrewCanada Editor 2 10-06-2019 11:47 AM
Text - Image alignment problem MrB Sigil 10 11-03-2012 03:36 AM
Hello/Image and text alignment Derek R Introduce Yourself 3 06-26-2011 10:47 AM
Image alignment and spacing Derek R Kindle Formats 5 06-25-2011 12:57 PM


All times are GMT -4. The time now is 01:06 AM.


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