title_body: Is there a detailed guide for creating an ebook for Kindle in HTML/CSS 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)
upvoted_answer: 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!