View Single Post
Old 04-26-2011, 02:00 PM   #3
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
Quote:
Originally Posted by ApK View Post
I've seen mention here, I think, that if you want a Kindle book to open to the cover image, you'd have to include the cover image as a graphic on the first content page.
Yes, this is what I did—my image cover.jpg is displayed on the first file, titlepage.xhtml, which contains this simple code:

Code:
<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>
Also I just tested on another book, similar situation (cover displayed on first file), but before the first <h2> tag, there was a couple various pages (quotes that goes before the main text, etc.). And when opening the book on my Kindle for the first time, it skipped all those first pages to open where the first <h2> tag appears... So it definitely seems linked. I just noticed though that this <h2> tag had no "page-break-before" in his definition.

I still want to understand what I am doing wrong. Thanks for the help.
mtrahan is offline   Reply With Quote