10.1

Table Of Contents
Specifying CSS for ePub export
The formatting of content in an ePub eBook is controlled by Cascading Style Sheets (CSS).
With CSS, you can control the indents, alignment, and formatting associated with the
tags you apply in Reflow view.
Some CSS options are not supported by all ePub readers. Be sure to test all of the CSS
customizations you make with each of the target ePub readers you want to support.
The CSS specifications that are embedded in an exported ePub eBook are determined by
the "style.css" and "vertical_style.css" files in the following location:
[QXP application folder]/XTensions/DigitalPublishing/Templates/css
For example, if you wanted to change the size of the Headline 1 tag and make it bold,
you could first locate this section in the "style.css" file:
.headline1 {
font-size: 1.5em;
}
And then change it to something like this:
.headline1 {
font-size: 2em;
font-weight: bold;
}
For information on CSS, see a CSS tutorial such as the one available at
http://www.w3schools.com/css/.
The "css" folder also includes an "Examples" folder, which contains a variety of customized
CSS files that produce different appearances. To try out one of these samples, first back up
your "styles.css" file. Then make a copy of the CSS file you want to try, rename it to
"styles.css", and move it to the "css" folder. When you next export an ePub book, it will
use the new settings.
It is possible to change the CSS configuration for an ePub file that has already been exported,
but the process can be complex. Consequently, Quark recommends modifying the "style.css"
file prior to export instead.
Exporting for Kindle
To export a layout in Kindle format:
1
Download KindleGen from the Amazon Web site and install it into its default location.
As of this writing, you can download KindleGen from http://amzn.to/HHMgj8, but this
could change.
2
Choose File > Export > Reflow as Kindle. The Export for Kindle dialog box displays.
310 | A GUIDE TO QUARKXPRESS 10.1
EBOOKS