Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 12:12 PM   #1
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
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?
Attached Files
File Type: epub The Poisoned King_bestiary title page.epub (544.4 KB, 6 views)
Siavahda is offline   Reply With Quote
Old Today, 12:50 PM   #2
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: 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.
JSWolf is offline   Reply With Quote
Advert
Old Today, 02:20 PM   #3
Siavahda
Addict
Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.Siavahda can eat soup with a fork.
 
Posts: 282
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kobo Clara Colour
Quote:
Originally Posted by JSWolf View Post
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?
THANK YOU! That worked perfectly!

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.
Siavahda is offline   Reply With Quote
Old Today, 02:48 PM   #4
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: 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.
JSWolf is offline   Reply With Quote
Reply

Tags
centering images, image for kobo


Forum Jump

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


All times are GMT -4. The time now is 07:44 PM.


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