|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 282
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Can't center images
I'm constantly having problems where images in epub files claim to be centred in the file, but don't display as centred on my Kobo (or in Adobe Digital Editions).
Example attached. What am I missing? Why does the image display as centred in Calibre editor + viewer, but not on my Kobo? And how do I fix it? |
|
|
|
|
|
#2 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,893
Karma: 153788249
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The problem is <figure>. Change it to <div> and your image will center. <figure> does not work in ePub2. Also, you never really need <figure> when you can use <div> that always works.#
Why is the code in this ePub so bad? How did it go from a retail copy to a horrible mess? Last edited by JSWolf; Today at 12:58 PM. |
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 282
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
|
Quote:
Clearly I need to read up on epub2 - I didn't even know there are numbered types! So much to learn. THANK YOU. As for why the code's so bad - I did use epubmerge to stick another ebook onto the end of this one, but other than that, the code is what it was when I bought it. Insert blood-tear emoji here, I guess. |
|
|
|
|
|
|
#4 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84,893
Karma: 153788249
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Glad I was able to help. Enjoy reading.
|
|
|
|
![]() |
| Tags |
| centering images, image for kobo |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recipe fails to download some images due to slow loading of the images | itssudipok | Recipes | 2 | 07-05-2022 01:05 PM |
| Koreader 2019.08 doesn't center image due to text-align: center | Norbi24 | KOReader | 7 | 08-29-2019 05:07 PM |
| How to center images in OLD mobi7 for Voyage | GrannyGrump | Kindle Formats | 16 | 07-13-2016 11:44 PM |
| Want to Center Irregular Images with text wrap | GrannyGrump | ePub | 26 | 04-04-2013 02:22 AM |
| How to center/fit page width SVG images with <OBJECT> | amoroso | ePub | 0 | 07-31-2010 11:48 AM |