Para styles export valid CSS names

This check makes sure all Paragraph Styles export to class names that are valid CSS names.

Chat icon
Transcript

When creating ePubs, using non standard names in CSS can cause validation errors and stop things working properly.

For example, a forward slash (/) or a colon (:) indicates a folder in file paths and can cause problems transferring and backing up files. An ampersand (&) or a less-than sign (<) will mean different things in coding languages. A comma (,) or full stop (.) can also mean things to an operating system. Even a space cannot translate to a web URL and therefore is not truly safe to use.

In CSS, identifiers (including element names, classes, and IDs in selectors) should be taken from Uppercase letters (A-Z), lowercase letters (a-z), numerals (0-9), regular dash (-), underscore (_).

Note: If there is an export tag set up in InDesign then the export tag name is checked rather than the file name.

EPUBSecrets Article on Export tags

Article - Which characters are valid in CSS class names/selectors?

Sign Up