Digital publishing
How Drop Caps Break Line Spacing in Kindle's Enhanced Typesetting Engine
Amazon and the authors who format Kindle books describe drop caps in strikingly different terms. On one side, Amazon’s help page on Enhanced Typesetting states, as of November 2026, that “Drop caps automatically adapt their line height to the customer’s screen size and font settings.”1 On the other, a recurring complaint among self-publishers is that Kindle drop caps open a gap beneath the first line of a chapter, push the second line out of alignment, or leave an oversized letter hanging into the fourth line once a reader changes the font. Both accounts can be accurate at once. Amazon’s statement describes what its rendering engine does with a drop cap built the way Amazon recommends; the complaints usually describe drop caps built some other way, or tested under only one font setting.
This article explains the layout mechanics that cause drop caps to disturb line spacing, sets out Amazon’s own recommended markup and the reasoning behind it, and evaluates the claim in the title. The documentation consulted does not show that Enhanced Typesetting itself breaks line spacing. It does show several ways in which an author’s CSS can defeat the adaptation Amazon describes.
A large letter inside a line changes the height of that line
The underlying problem is a property of CSS layout rather than of Kindle specifically. In CSS, each line of text sits in a line box whose height is set by the tallest content it contains. When an author enlarges the first letter of a paragraph to three or four times the size of the body text and leaves it in the normal flow of the line, the first line box grows to accommodate it. The first line then sits far below the chapter heading, while the second and later lines resume normal spacing. The visual effect is a large gap after line one, which is the most common form of “broken” line spacing in ebook drop caps.
The traditional remedy is to take the letter out of the line by floating it. A floated element no longer contributes to the height of the line box; instead, the following lines wrap around it. The W3C’s CSS Inline Layout Module Level 3, in its Working Draft of 18 December 2024, describes the related behavior for its own initial-letter mechanism: “initial letter boxes can come between the containing block edge and the line box edge,” which reduces the logical width of the affected lines rather than their height.2 A float achieves a similar effect by older means.
Floating, however, introduces a second problem. A floated letter takes the height of its own glyph box, which depends on the font’s ascenders, descenders, and internal spacing, not on the number of body lines the designer intended it to span. Getting a floated capital to occupy exactly three lines, with its top aligned to the cap height of the first line and its baseline aligned to the third, requires adjustments to font size and margins that are specific to the typeface. In a 2017 article for OddBird, Stacy Kvernmo described those adjustments plainly: “These ‘magic numbers’ are not universal so if you change a value or font-family you will likely have to edit these values.”3 She added that a more programmatic calculation would still not “take into account the x-height of the typeface you choose.”4
Web CSS offers a second way to select the letter. MDN Web Docs describes the ::first-letter pseudo-element as one that “applies styles to the first letter of the first line of a block container, but only when not preceded by other content (such as images or inline tables),” and its basic drop cap example floats the letter left at font-size: 250%.5 MDN lists float, the margin properties, and line-height among the small set of properties permitted on the pseudo-element, and notes that vertical-align applies “only if float is none.”6 Amazon’s recipe, discussed below, uses an explicit span rather than the pseudo-element, which makes the drop cap visible in the markup and independent of how a reading system interprets the selector.
On a printed page, the designer knows the typeface and size. On a Kindle, the reader may change both. Every magic number that aligned the drop cap in the author’s chosen font is a potential misalignment in another.
Amazon publishes a specific drop cap recipe with negative margins
Amazon’s “Text Guidelines - Reflowable” page addresses drop caps directly. As of November 2026, it states that “Elements such as drop caps should be specified using percentages or relative units (positive or negative)” and that “The top of the drop cap should be aligned with the body text.”7 It then supplies sample CSS. The paragraph containing the drop cap is set with font-size: 1em;, margin-bottom: 0;, margin-top: 0;, text-align: justify;, and text-indent: 0;.8 Within an @media amzn-kf8 block, a span.dropcaps rule sets font-weight:normal;, font-size:320%;, float:left;, margin-top:-0.3225em;, and margin-bottom:-0.3245em;.9 A separate @media amzn-mobi block sets font-size:3em; and font-weight: bold; for the older Mobi format.10 The markup is a single span around the first letter: <p class="para"><span class="dropcaps">T</span>his is a sample.11
Three features of this recipe bear directly on line spacing. First, the drop cap is floated, which removes it from the line box and prevents the first line from growing. Second, the negative top and bottom margins, expressed in ems, pull the float’s box tighter than its glyph box would otherwise be, so that it spans the intended number of lines rather than an extra one. Third, the paragraph’s indent is zeroed, so that the second and later lines wrap cleanly against the float rather than beginning with an indent beside it.
The precision of the margin values, specified to four decimal places, is itself informative. They are magic numbers in Kvernmo’s sense, tuned to produce correct alignment at a particular relationship between the drop cap’s size and the body text.1213 Because they are expressed in ems, they scale with the drop cap’s own font size, which is why Amazon insists on relative units.14 Replace them with pixel or point values, and the alignment holds at only one font setting.
Enhanced Typesetting adjusts drop caps that it can recognize
Amazon’s Enhanced Typesetting page lists the engine’s features, including “Kerning and ligatures” and “Advanced hyphenation and justification,” and states that drop caps “automatically adapt their line height to the customer’s screen size and font settings.”15 The page states that Enhanced Typesetting applies “only to reflowable format Kindle books,” that Amazon enables it automatically “when possible,” and that “Customers who use older devices receive a KF8 version of the title.”16 It recommends Kindle Previewer for checking whether a given book supports the feature.17
The page does not explain how the engine identifies a drop cap or what it does when an author’s CSS conflicts with its adaptation. Amazon’s “Text Guidelines - Reflowable” page offers an indirect answer through its emphasis on testing. It states: “To verify that the drop caps display as intended, test the book,” and it shows examples of the same drop cap at a “Small font setting” and a “Large font setting” in a book using Enhanced Typesetting.18 The implication is that the adaptation Amazon describes is something an author should confirm, not assume, and that font-size changes are the condition under which it is most likely to fail.
Readers should note the limits of this evidence. Amazon’s documentation does not state that Enhanced Typesetting overrides custom drop cap CSS, does not list drop cap constructions it cannot adapt, and does not describe its behavior with fonts the reader selects. The claim that the engine “breaks” line spacing, in the sense of the engine itself introducing errors into correctly built drop caps, is not supported by any source consulted for this article.
Author CSS that fights the reader’s settings is the usual cause
The documented rules point to several constructions that are likely to produce the line spacing problems authors report.
The first is a drop cap that is enlarged but not floated. As described above, an enlarged inline letter increases the height of the first line box. Amazon’s recipe avoids this by floating the span; a drop cap that omits the float, or that places it in a media query block the Kindle format never matches, will raise the first line.19
The second is fixed units. Amazon’s guidelines state: “Avoid using fixed values such as points and pixels for CSS properties such as font-size.”20 A drop cap sized in pixels stays the same size when the reader enlarges the body text, so a cap that spanned three lines at small sizes may span only one or two at large sizes. A pixel-based margin fails in the same way.
The third is line height applied to body text. Amazon states that “Body text must use the default font size (1em) and line height” and that body text “should not use the tag or the font-size and line-height attributes in CSS.”21 A custom line height on the paragraph that contains the drop cap changes the distance the drop cap must span. If the drop cap’s margins were tuned for the default line height, a custom one misaligns them, and the engine’s adaptation, which by Amazon’s description concerns the drop cap’s line height, may not compensate.22
The fourth is use of the height property. Amazon states: “Never use the height property to control the size of elements containing text,” and “The height property should only ever be applied to images in reflowable books.”23 A drop cap span with a fixed height forces its box to a size that cannot adapt.
The fifth is an image used as a drop cap. Decorative initial letters are sometimes supplied as images to preserve a display typeface. An image sized in absolute units does not scale with the body text, and an image floated against text without the margin tuning Amazon’s recipe provides can easily span the wrong number of lines. The guidelines consulted here do not address image drop caps specifically, but their requirement for relative units applies.24
Format-specific rules let one file carry two drop cap designs
Kindle books may be delivered in more than one internal format, and Amazon documents a mechanism for serving each its own drop cap styles. As of November 2026, KDP’s “Media Queries” page states: “For KF8 CSS styles, use the media query @media amzn-kf8. This is only applied for the KF8 format,” and “For Mobi CSS styles, use the media query @media amzn-mobi. This is only applied for the Mobi format.”25 It adds that “The @media screen and @media all styles continue to apply to both KF8 and Mobi.”26
The same page lists the creation of “custom drop cap solutions for specific devices or groups of devices” as a valid use of these queries.27 Its backward-compatibility example defines a .firstletter drop cap class with line-height: 1 for KF8 and redefines it inside @media amzn-mobi with line-height: 0, so that the older format renders the letter differently.28 Amazon’s drop cap recipe on the Text Guidelines page follows the same pattern, with a floated, margin-adjusted cap for KF8 and a simpler enlarged, bold letter for Mobi.29
For authors, this mechanism has two implications. A drop cap that looks correct in one format may look wrong in another, because different rules are in force. And styles placed outside the Amazon-specific queries apply to all Kindle formats and to other reading systems, so a rule intended only for one format must be scoped to it.30
CSS initial-letter solves the alignment problem on the web, not yet in documented Kindle support
The web platform now offers a purpose-built property for drop caps. MDN Web Docs describes initial-letter as the property that “sets the size and sink for dropped, raised, and sunken initial letters,” and explains that its first value “Defines the size of the initial letter, in terms of how many lines it occupies,” while its second “Defines the number of lines the initial letter should sink.”31 Instead of tuning font size and negative margins until the letter happens to span three lines, an author writes initial-letter: 3 and the browser computes the size.32
According to a Chrome for Developers article by Jhey Tompkins, last updated in January 2023, Chrome supports initial-letter from version 110, Safari supports it with the -webkit- prefix, and Firefox had not yet implemented it.33 Tompkins summarized the history of the problem: “There hasn’t been a”clean” solution to styling them,” and older approaches meant reaching “for properties like”float” whilst calculating a size for that first letter.”34 MDN, as of November 2026, states that the feature “is not Baseline because it does not work in some of the most widely-used browsers.”35
None of the Amazon documentation consulted for this article mentions initial-letter, and its support in Kindle rendering engines is not established here. An author who wishes to use it in an EPUB should provide a float-based fallback and should not assume Kindle support without testing in Kindle Previewer.
A testing routine catches most drop cap spacing failures
Because the failures described above depend on the reader’s settings, they rarely appear in a single preview. A practical routine follows from Amazon’s own guidance.
- Build the drop cap from Amazon’s recipe, or from a design that follows its principles: floated, sized and adjusted in relative units, with the paragraph’s indent set to zero and no custom line height on body text.36
- Scope format-specific rules with
@media amzn-kf8and@media amzn-mobias needed, and confirm that no rule meant for one format leaks into the other.37 - Open the book in Kindle Previewer, which Amazon recommends for checking Enhanced Typesetting support, and confirm that Enhanced Typesetting is enabled for the file.38
- Inspect the first page of several chapters at the smallest and largest font settings, as Amazon’s examples do, and at several of the fonts the reader may choose.39
- Check the chapter openings whose first word is short, begins with a quotation mark, or begins with a letter with an unusual shape, since each changes how the float sits against the following lines.
If the first line stands apart from the second at any setting, the drop cap is probably contributing to the line box, and the float or its scoping should be checked first. If the cap spans the wrong number of lines at large sizes, a fixed unit is the likely cause.
The practical choice is between precision and robustness
A drop cap is one of the few typographic devices in a reflowable ebook that depends on exact vertical alignment. Amazon’s documentation describes an engine designed to preserve that alignment as readers change their settings, and a recipe intended to work with it.4041 The line spacing failures that authors observe arise mainly where the drop cap’s construction depends on conditions the reader can change: a particular font, a particular size, or a custom line height. An author who wants a drop cap that survives every setting should build it from relative units and test it at the extremes, and an author who cannot test that widely may reasonably choose a simpler chapter opening, such as small capitals on the first words, that does not depend on vertical alignment at all.
Related articles on selfpublishingtool.com
- How to Prepare an eBook for Kindle Publication
- Why Embedded Fonts Get Stripped Out by Older Kindle Firmware
- How CSS Media Queries Let You Style eBooks Differently for E-Ink vs iPads
- Testing eBooks Across Different Reading Devices
- Why Some eReaders Ignore Your Paragraph Indents and Force Block Paragraphs
- Choosing Typography for Different Book Genres
Platform rules, fees and laws change. Facts in this guide are dated to when they were checked; confirm current terms with the platform or authority before relying on them. Nothing here is legal, tax or financial advice.