Ebook Formatting Answers: Why You Can’t Force Dropcaps, Indents, Headers, Footers and Fonts in Ebooks

ebook image

There are certain stylistic elements you can’t force when you’re formatting an ebook. What are some of these things and why is that the case?

Here are a few examples of attributes it’s tough to control in ebooks: dropcaps, hanging indents, running headers, running footers and body fonts.

Dropcaps in ebooks

Dropcaps are one element that you can’t entirely control in ebooks. You can do them by hacking around with the CSS, but they won’t look good in every instance.

This is because even if you hack your code to include dropcaps, every device will display them differently. They will look bad on 80% of outputs, especially where users can override text settings. Also, different devices have different font sizes, line heights, etc. and those can interfere with the dropcap display too.

Hanging indents in ebooks

In an ebook, you can’t force hanging indents because you need to use negative text indents or padding to get them to work properly, and ebook readers handle those badly. There’s no standard CSS to say “make this a hanging indent” and even when you try, it doesn’t work in many devices.

Running headers and running footers in ebooks

Another element you won’t see in ebooks is running headers or running footers. That’s because, unless you’re doing a fixed layout ebook (read this to learn why you shouldn’t), there’s no concept of a fixed “page” in an ebook–the book reflows based on the device. So from a style point of view, you can’t apply a running header or running footer. Some e-readers have their own standard for this too, and you can’t override those.

Body fonts in ebooks

If you have an e-reading platform like Kindle or iBooks or any e-reading software, there’s a user setting that lets users choose their preferred body font. At Pressbooks, we try to force chapter title and header fonts, but remember that the user retains some control over their reading fonts.

Related Posts

A Big, Warm Welcome to Pressbooks’ Newest team members: Carlos, Ho Man, and Başak

It’s time for us to lift the curtain on some major changes here at Pressbooks!  We’ve spent a lot of time over the last month doing some much-needed maintenance across the platform, including theme improvements and changes to the user experience for institutions using single-sign on technology. These past weeks also included important work on

Read More

Introducing: Malala

Take a look at our new textbook theme and try out its coolest feature: interchangeable fonts As some of you may have noticed, we have a tradition here at Pressbooks of naming our book themes after famous authors. We’ve tried to imprint the legacy that these authors and their books have left on literature onto

Read More

Scheduled Maintenance

To boost the performance and security of the Pressbooks.com network, we intend to perform scheduled maintenance on Thursday, Sept. 12 between 3 a.m. and 5 a.m. Eastern. What to expect. You can expect a short service interruption (1-2 minute downtime expected) at some point during this time frame, which would cut off any long processes like imports/exports.

Read More