View Single Post
Old 08-29-2019, 10:01 AM   #1
Norbi24
Connoisseur
Norbi24 doesn't litterNorbi24 doesn't litter
 
Posts: 64
Karma: 144
Join Date: Aug 2019
Device: Tolino Vision HD4, BOOX Poke2
Koreader 2019.08 doesn't center image due to text-align: center

Hi guys,
Although this is a very very minor thing, I have a book (epub) where each chapter heading consists of an upper image, text and lower image, and all of them are centered by the text-align: center directive in CSS. Look at the first image how it looks like in KOReader (Android build) (1st image) and for comparison, in some other app and also in Calibre:
Click image for larger version

Name:	koreader.png
Views:	343
Size:	208.4 KB
ID:	173158
Click image for larger version

Name:	fbreader.png
Views:	272
Size:	574.5 KB
ID:	173159

I saw that you do a lot in improving the CSS/HTML rendering in crengine, so thought perhaps you would be interested in this as a test case.

According to this discussion I believe that text-align should be applied also to images, not only texts:
https://stackoverflow.com/questions/...t-align-center

Last edited by Norbi24; 08-30-2019 at 03:37 AM.
Norbi24 is offline   Reply With Quote