View Single Post
Old 02-23-2013, 02:53 PM   #47
mtrahan
Colonel Mustard
mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.
 
mtrahan's Avatar
 
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
Hi,

I don't know what changed in this version to cause this situation, but now when I open some books, the cover image is displayed differently. For example, I do something like this in the cover.xhtml file:

Code:
<head>
  <title>Cover</title>
<style type="text/css">
@page {padding: 0pt; margin:0pt}
            body { text-align: center; padding:0pt; margin: 0pt; }
            div { margin: 0pt; padding: 0pt; }

  img.sgc-1 {height: 100%}
</style>
</head>

<body>
  <div><img alt="Cover" class="sgc-1" src="../Images/cover.jpg" /></div>
</body>
And the resulting image is compressed horizontally (or vertically stretched). In the previous versions, this wasn't happening. Is it a bug or it's me who's doing something wrong?

I'm using 'height: 100%' when the cover images are big. I thought this wasn't suppose to affect the verical/horizontal ratio.

Thanks in advance for your help—and great job on this new version!

Michael
mtrahan is offline