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-05-2010, 12:29 AM   #1
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
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, 12:36 PM   #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: 26,434
Karma: 5383257
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
Old 02-05-2010, 02:17 PM   #3
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 951
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
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, 07: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 12:50 PM
Another ePub does not display correctly. KjellM EPUBReader 7 07-16-2010 04:31 AM
How to get author/title to display correctly on Jetbook? Canuck_in_Japan Ectaco jetBook 2 06-09-2010 09:24 PM
Any ereader device display Thai correctly? bthoven Which one should I buy? 19 10-07-2009 03:00 AM
Getting Mobipocket authors to display correctly on Kindle geoelectric Amazon Kindle 31 02-14-2008 03:22 AM


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


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