I want to be able to create an ebook on my own for Kindle. I want to do this in HTML, and then later use KindleGen and KindlePreviewer for generating a .mobi file and previewing. I've looked around the web for guidance, but while they do have basic instructions, such as creating page breaks, including text, and including basic CSS, they do not seem to go into much detail.

What I need is a guide that might help me create CSS and HTML for an ebook that comes out perfectly in all versions of Kindle, is there any such guide in the form of a book or a web page available out there? Something that helps me include custom bullets and images, stuff like that, and helps me iron out the kinks I get when I try to use the usual HTML/CSS for my ebook. Such as a current problem that I am having of custom bullets appearing shifted way away from the text, and the image of these custom bullets appearing with different sizes in different versions of Kindle.

(I know basic HTML and CSS and willing to learn as much as I need to create that perfect ebook)

3 Answers 3


Your best bet is to start with a solid epub file and run that through either KindleGen or Kindle Previewer. Other tools such as Sigil and Calibre are convenient, but often cause problems down the road by inserting their own bits of code. If you want to be certain that you know what is causing your problems, it's always best to do it yourself.

The single best resource for creating a solid, valid epub file is the IDPF's epub 3.0 specification. Once you feel like you've gotten it pretty close, use epubcheck to find and iron out the kinks. A valid epub 3.0 file should transform seamlessly into a valid mobi/KF8. Once you have the valid epub, you can begin your Kindle-specific styling. Make sure you pay attention to the specific requirements of the Kindle Publishing Guidelines when you are doing so.

For basic getting started guides, you might check out Harrison Ainsworth's "EPUB Format Construction Guide." It's a bit dated by now, and only deals with epub 2.0.1, but it will cover the basics pretty well. O'Reilly has a book on EPUB 3 Best Practices that's not too shabby, but it might go into more detail than you need to get started.

Do a bit of reading, but not too much, and then find a non-DRM'ed epub file and tear it apart (just change the filename from .epub to .zip and unzip it) to see what makes it tick. Change stuff, re-zip is (how you do that will depend on the operating system you use) run it through epubcheck, and see what error messages you get. Getting a valid book is quite doable with minimal experience.

As far as styling goes: there are lots of quirks in reading systems and devices. If you want to only do Kindle, you're cutting out a lot of potential issues, but each of Amazon's devices has its own quirks as well, so be prepared to test a lot, and ask lots of questions when problems come up.

Best of luck!

  • Is there any advantage to using epub 3 rather than epub 2 when converting to Kindle formats?
    – evilsoup
    Mar 8, 2014 at 16:28
  • Honestly, it's been so long since I've done any epub 2.0.1 that I couldn't say. Why would you not use the current standard format?
    – Tom
    Mar 8, 2014 at 16:40
  • Well, this should probably be a separate question, but since the epub e-readers will nearly all support epub 2, while some of them will not support epub 3, I see no reason to bother with epub 3 (assuming I don't ever need the additional features). Since I'm just using pandoc to generate the things, it's not a big deal to generate epub 3 in order to feed it into kindlegen, but I was just wondering if there was any advantage to doing so.
    – evilsoup
    Mar 8, 2014 at 16:45
  • 1
    My pleasure, glad to help! The reason you have to follow the guidelines is because there is a lot of wiggle-room in the epub spec--many things are optional, etc. Amazon's guidelines narrow down the scope a bit. In a perfect world, the epub spec would be the only one we'd need, but unfortunately individual device and reading system manufacturers pick and choose which bits of the spec they support. Think of it like the web in the late '90s, when Netscape and IE interpreted thing in completely different ways, and you won't be too far from the truth. More's the pity.
    – Tom
    Mar 10, 2014 at 8:27
  • 2
    Tracking support for epub3: check out the BISG EPUB 3 Support Grid: link Mar 10, 2014 at 16:10

In addition to the resources Tom listed, Joshua Tallent's book Kindle Formatting will give you tips for working around formatting problems. It's an old book and doesn't cover Kindle Format 8, but if you run into issues, it might give you ideas to try. Fortunately, KF8 has fewer limitations than MOBI 7, the older Kindle format, but the book will help if you want to support older Kindles.

Another resource to explore is the MOBI article at the MobileRead Wiki.

  • I have used Tallent's book before, but many of Tallent's tricks are no longer needed with KF8 format and might just confuse somebody at this point. Mar 12, 2014 at 17:41

I'm familiar with all the resources mentioned here, but at the moment Paul Salvette's book eBook Design and Development Guide is the best as far as practical steps for constructing the ebook. http://www.amazon.com/The-eBook-Design-Development-Guide-ebook/dp/B009G2JMRK/ It's a year and a half old, but still basically relevant.

A lot of the templates from the book are here: http://bbebooksthailand.com/vip/code-eBook-design-development.html

Elizabeth Castro's book is also good but probably a little too focused on ibooks and inDesign.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.