Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-04-2010, 11:29 PM   #1
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,158
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Epub does not display images correctly

Hi,

I've been using the same source HTML file to create LRF and mobipocket files. In these two conversions all my images obey my css stylesheet rules and they seem to re-size properly. So all my images are centered and fit on the page.

When I use the same source file and same css code to create an epub, none of the images are centered and sometimes they sprawl off the page.

I'm currently using img {text-align: center; } to center my images and in the body of the HTML I use <IMG SRC="imagename.ext">

I'd appreciate any advice or help on this matter.

Thanks!
Amalthia is offline   Reply With Quote
Old 02-05-2010, 11:36 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
most epub viewers dont resize images to fit in the viewable area. calibre's epub viewer just got tat feature recently. As for centering a more robust way to do it is

Code:
<div style="text-align:center">
<img>
</div>
kovidgoyal is offline   Reply With Quote
Advert
Old 02-05-2010, 01:17 PM   #3
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,158
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Quote:
Originally Posted by kovidgoyal View Post
most epub viewers dont resize images to fit in the viewable area. calibre's epub viewer just got tat feature recently. As for centering a more robust way to do it is

Code:
<div style="text-align:center">
<img>
</div>
You're a lifesaver! Will try this. I imagine it'll work for LRF and Mobi as well.
Amalthia is offline   Reply With Quote
Old 09-05-2011, 06:44 AM   #4
yJan
Junior Member
yJan began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2011
Device: sony prs-650
Awesome!
I always had the problem that my images on my sony reader were standing atop of the text, that only one line of text fit between the image and the right border.
Now, with that setting, my text will float around the image seemlessly
thank you very much!
yJan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Epub cover image does not display correctly Amalthia Calibre 30 06-20-2011 11:50 AM
Another ePub does not display correctly. KjellM EPUBReader 7 07-16-2010 03:31 AM
How to get author/title to display correctly on Jetbook? Canuck_in_Japan Ectaco jetBook 2 06-09-2010 08:24 PM
Any ereader device display Thai correctly? bthoven Which one should I buy? 19 10-07-2009 02:00 AM
Getting Mobipocket authors to display correctly on Kindle geoelectric Amazon Kindle 31 02-14-2008 02:22 AM


All times are GMT -4. The time now is 04:27 AM.


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