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: 281
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, 3 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,889
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 online now   Reply With Quote
Advert
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 01:09 PM.


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