XML technologies / ePUB / ePub für (In)Designer / Images, boxes and other design elements / Orphans and widows
(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)
An isolated paragraph line at the start or end of a text flow is an orphan line (orphan) or widow line (widow), depending on whether it is the paragraph’s first or last line.
Figure: Orphan at a column’s foot, and widow at its beginning.
Although iBooks and InDesign do not yet recognize the CSS commands for orphans and widows, add them to CSS styles. E-readers such as Adobe Digital Editions and Barnes & Noble support them, and the ePub is prepared for future support.
Open the ePub’s CSS file and add these declarations to styles where isolated lines should be avoided:
orphans: [Anzahl der Zeilen] (orphans)
widows: [Anzahl der Zeilen] (widows)
The style then looks like this:
p.Text {
font-family: "Minion Pro", serif;
font-weight: normal;
font-style: normal;
font-size: 1em;
text-decoration: none;
font-variant: normal;
line-height: 1.2;
text-align: justify;
color: #000000;
text-indent: 17px;
margin: 0px;
orphans: 2;
widows: 2;
}
Copyright © dpunkt.verlag GmbH 2012
You may print the online version for your private use.
Otherwise, this chapter from “ePub für (In)Designer” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Wieblinger Weg 17, 69123 Heidelberg, fon 06221-14830, fax 06221-148399, hallo(at)dpunkt.de
back to top