View Single Post
Old 07-21-2025, 03:41 PM   #26
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,850
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Moonbase59 View Post
@RbnJrg: Couldn’t really believe what you said about the Pocketbook, because I always found their renderer rather compatible. I own a Pocketbook Era (PB700), Firmware U700.6.8.4183.

I took an older test file and quickly put your ".bigMargin" example in, setting the "div" background to green so we can see what’s happening. As far as I can see, all is as intended. I enclose the test EPUB so you can try for yourself.

Sigil, Thorium, Foliate and the actual device show it works fine. Oh, and KOReader, too.

Just in case anyone wonders: Block element margins usually collapse, that’s why we don’t see "more margin" in the example.
Sorry, my mystake. I was referring to the Android version of PB. It's possible that the physical device has a different rendering engine, but the app has the bug I described.

Download the app; open the epub I attach with PB and you'll be able to check that the app doesn't honor especial margins.

Here you have how it looks under Sigil:

Click image for larger version

Name:	One1.jpg
Views:	29
Size:	108.5 KB
ID:	217011

And here you have a screenshoot of PB:

Click image for larger version

Name:	Screenshot_2025-07-21-16-33-39.png
Views:	36
Size:	211.3 KB
ID:	217009

As you can see, margins are not honored And here we don't have an issue due to margins collapse; according to css rules, the margin to take is the bigger one, and in the present case, the bigger margin is 1em. You need in PB to replace that <p> with a <div> and apply .bigMargin to this last one if you want to have the proper margins.

You can also try it with Thorium by trying to increase the font size in an <h*> tag; it doesn't accept it. Instead, it uses the program's default size.
Attached Files
File Type: epub Test_of_Margins.epub (2.7 KB, 21 views)

Last edited by RbnJrg; 07-21-2025 at 03:47 PM.
RbnJrg is offline   Reply With Quote