oasegips / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Covers not displaying correctly #2357

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using 0.7.3 on Windows 8

Since the addition of the "Add Cover" feature, the covers in my hundreds of 
books previously formatted do not display properly. I used to code the cover 
file like this:

In the file:

 <div><img alt="SB_Cover" class="sgc-i" src="../Images/SB_Cover.jpg" /></div>

In the stylesheet:

div {padding: 0pt; margin: 0pt}
img.sgc-i {height: 100% width: 100%}

And this made covers resize appropriately to any container. Now with that code, 
they are elongated and not resizing correctly to fit the page. If I use the 
code entered with the "Add Cover" function, they work correctly, but the other 
method should still work also, no?

Original issue reported on code.google.com by vic...@vickietaylor.com on 8 Aug 2013 at 6:06

GoogleCodeExporter commented 9 years ago
The code you were using will not work to resize covers correctly for every 
device - a height of 100% has no meaning on an html page that is longer than a 
screen, and Sigil is basically using an HTML renderer.  You need to check on 
actual devices to see if it renders ok for you.  And you can ask on MobileRead 
for more information on resizing for covers.

Original comment by daveheil...@gmail.com on 8 Aug 2013 at 8:09