View Single Post
Old 10-20-2014, 02:40 AM   #12
mikelv
Developer of EPUBReader
mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.mikelv once ate a cherry pie in a record 7 seconds.
 
Posts: 271
Karma: 1922
Join Date: Oct 2009
Device: none
Quote:
Originally Posted by AlexBell View Post
This is late, I know, but I realised that the problem might be that the markup in my first post does not set the img to display: inline.

I added this to the CSS file

div.centre img { display: inline; }

and the images are centered in iBooks as well as all the other readers.

I'm afraid I don't know enough about CSS to know whether iBooks is being too strict in requiring that the image display: inline, or whether ADE and Marvin is being too lax in not requiring this. Any comments?
"display:inline" shouldn't be necessary, because the img element is per definition an inline element. So in my opinion this is a bug in the iOS renderer.
mikelv is offline   Reply With Quote