View Single Post
Old 05-12-2024, 10:54 PM   #14
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,367
Karma: 20212733
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
Quote:
Originally Posted by repilo View Post
I have just solved the riddle. It's all because I have a margin selected in the menu called “Aa”. If I select margins = 0 the centering is perfect.
However, this is a Kobo defect, because it's legitimate to adjust this menu to the user's taste, and it shouldn't cause any problems, as it doesn't affect the centering of any other text.
There isn't much anyone can do with CSS if the device/app ignores the ePub's css...

You could try using the !important property and/or enable Use Publisher's Styles, as theDucks mentioned, if it is available for your device.

I was playing around with this and you could try the following:
Click image for larger version

Name:	Screenshot 2024-05-12 224409.png
Views:	396
Size:	175.1 KB
ID:	208245


If you use vh/vw instead of % in the height/width properties, then you don't need the position:fixed. However, I'm not sure how many devices support vh/vw ???

Click image for larger version

Name:	Screenshot 2024-05-12 224451.png
Views:	387
Size:	186.0 KB
ID:	208244

Last edited by Turtle91; 05-12-2024 at 11:07 PM.
Turtle91 is offline   Reply With Quote