![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,184
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! |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,216
Karma: 27110894
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> |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
You're a lifesaver! Will try this. I imagine it'll work for LRF and Mobi as well.
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() 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! |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |