3.3 HTML & CSS

Making Ebooks with InDesign: Module 3, Step 3

  • Subject(s):

    InDesign to EPUB

  • Resource Type(s):

    Step-by-Step

  • Audience:

    Technical

Suggested Prerequisite

Before reading this, you might want to read:

HTML & CSS

The HTML & CSS tab has some hidden gems. It is fair to say that InDesign does not write a very good ebook CSS file. It exports too much information, including things that will definitely interfere with accessibility. 

For example, the InDesign generated CSS will define the text as black, which will mean that most text will not invert when a user switches to night mode. Defining the body font size as 0.917em — which is often what 12-point type turns into — means that a user with low vision may not be able to upsize the font in some reading systems. Some of the CSS is nonsense that no reading system will respect, and some of it is repetitive and unnecessary — like text-transform:none. Twenty lines of CSS definitions can be condensed down to eight lines. With a really good CSS, it could be compressed even further. 

InDesign’s CSS is not only overburdened but can actually get in the way of accessibility. We encourage you to develop your own CSS, or crib from others. Blitz.css is a very good starting place. While no longer under active development, Blitz CSS is still a very usable, excellent ebook CSS resource. Please consider starting there and swapping in that set of CSS definitions for the overwrought CSS that InDesign will produce for you. To do that, uncheck Generate CSS in this window, and ask InDesign to embed CSS that you add here in the Additional CSS window. The ability to change the font size and font are foundational to accessibility so don’t let InDesign’s CSS to undo the good work you’ve done to make an accessible EPUB.

The final window is the metadata window — and it is already populated with the details that you may have put into the File —> File Info window. You might add an ISBN identifier here, and a publisher to round out this data. 

Next Steps

1

Module 4, Step 1

4.1 Post-export Work

Making Ebooks with InDesign: Module 4, Step 1

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
2

Module 4, Step 2

4.2 EPUB Tour

Making Ebooks with InDesign: Module 4, Step 2

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
3

Module 4, Step 3

4.3 What InDesign Doesn’t Do Well

Making Ebooks with InDesign: Module 4, Step 3

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
4

Module 4, Step 4

4.4 HTML Cleanup

Making Ebooks with InDesign: Module 4, Step 4

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
5

Module 4, Step 5

4.5 Context Breaks

Making Ebooks with InDesign: Module 4, Step 5

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical
6

Module 4, Step 6

4.6 Navigation Cleanup

Making Ebooks with InDesign: Module 4, Step 6

Subject(s): InDesign to EPUB
Resource Type(s): Step-by-Step
Audience:
Technical

Want to discuss this resource?