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

Join Us for Open Education Week: Language Diversity Showcase

Every year since 2013, the open education community comes together for one week to celebrate open education. This year Pressbooks is contributing to that celebration with a presentation: Diversity of Language in Open Educational Resources.  Please join us at 3pm EST on Thursday, March 5 for a 1-hour presentation. We’ve asked a few members of

Read More

Pressbooks.com Scheduled Maintenance: Jan. 2 & Jan. 3 / 2 a.m. – 7 a.m. EST

To boost the performance and security of our network, we intend to perform scheduled maintenance on the Pressbooks server between 2 a.m.-7 a.m. EST on Thursday, Jan. 2 and between 2 a.m.-7 a.m. EST on Friday, Jan. 3.  Pressbooks.com will be unavailable for anywhere between 30 to 120 minutes during the maintenance window on Jan.

Read More

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