View Single Post
Old 04-26-2011, 11:14 AM   #1
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
ePub to Mobi with Calibre: cover is skipped when opening book

I've been working on a ePub file for a couple of days (with Sigil). The formatting seems to work fine in iBooks and ADE. But when I convert the file to Mobi with Calibre and put it on my Kindle, there is one problem: when I open the book, it skips the cover and jumps right to the "about" page.

The tite of the about page is between <h2> tags and is the first item on the TOC. The <h2> element is styled like this in CSS:
Quote:
h2.sectiontitle {
text-align: center;
page-break-before: always;
}
I guess the problem comes with the "page-break-before: always" part. How do I fix this problem (the book skipping cover) if I want to keep "page-break-before: always" in my "sectiontitle" class? Should I put special code in the first file—where the cover is—so that the Kindle explicitly knows that this is the start of the book?

Is it the good way to solve this problem or there is a cleaner way?

Also, not sure if this is a problem with the Calibre conversion? I know Calibre does the best with what input it gets, so ideally, I would prefer to add something in the original ePub with Sigil (to keep the original as good as possible). Or should I edit the output of Calibre conversion—the mobi file, directly?

Thanks in advance for your help.
mtrahan is offline   Reply With Quote