View Single Post
Old 02-14-2015, 04:34 PM   #4
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: 79,828
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Notjohn View Post
I use width="100%" and let the height take care of itself. It works on the Sigil display, on all Kindle devices and apps, on the Nook, and on ADE. (In my experience, I hasten to add, in hopes of avoiding another debate. I am only saying what works for me.)

That said, my first impulse was to copy Sigil's cover html, but I see Toxaris has already suggested that. Here it is in any event:

<div style="text-align: center; padding: 0pt; margin: 0pt;">
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 800 1169" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"><image height="1169" width="800" xlink:href="../Images/coverepub.jpg"/></svg>
</div>
If your image was viewed on one of those cheap tablets with 800x480 resolution, you would have a fail. The image would not fit properly on screen. So the best way to handle it would be to have the height be 100% and let the width be handled on it's own.
JSWolf is online now   Reply With Quote