Contents | Start | End | Previous: KB0269: How do I prevent headings being followed by a page break? | Next: KB0271: How can I use Microsoft Edge to view my ebooks?


KB0270: Why are first-line and full indents not the same on Kindle?

On some Kindle platforms, you may find that a first-line indent in one paragraph is not the same as a full indent in another paragraph, even though the values are the same in the Jutoh styles. This may occur in Amazon's 'Look Inside' and in some viewers such as Kindle for Android, although it has been hard to reproduce the problem consistently on Android.

It would appear to be caused by a bug or inconsistency in handling the CSS attributes text-indent and margin-left, and can appear when the text size is greater than normal. It's not yet clear exactly why this is happening but there is a workaround, as described below.

Fix

The fix is to provide a non-zero left and right margin, for all styles.

Select your Kindle configuration, then edit the option Body CSS and add this:

body { margin: 0 0.1pt }

Click OK, then Compile. This gives left and right margins a value of 0.1pt if not otherwise specified. You can use any non-zero value, but large values will reduce the space available to your content.

Note that this CSS will be set by default in new Kindle configurations and for older projects loaded into Jutoh 2.60 and above.


Contents | Start | End | Previous: KB0269: How do I prevent headings being followed by a page break? | Next: KB0271: How can I use Microsoft Edge to view my ebooks?