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

Introducing: A Community of Practice for PressbooksEDU Network Managers

We’re adding yet another perk to PressbooksEDU networks: a discussion space in our Pressbooks Community specifically for network managers of EDU hosted networks. All current and future PressbooksEDU network managers will be invited to connect, interact, and share ideas with others in similar roles in this forum. Our decision to create this new community space

Read More

OTN Members: Don’t Forget to Use Your PressbooksEDU Discount!

Institutional members of the Open Textbook Network (OTN) are eligible for 30% off the annual price for PressbooksEDU Silver and Gold plans. If your institution is a member of the OTN, you can save on the annual subscription price for a PressbooksEDU Silver or Gold network. Together, Pressbooks and the OTN are working to help

Read More

Internship Position at Pressbooks: Here’s How to Apply

A lot of work goes into making great software for great people. We’re currently looking for an ambitious student or recent graduate in the Montreal area who would like to be a part of that work. If you’re interested in the crossroads of education, technology, and publishing, we’d like to hear from you. For more

Read More