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.

Orphan and widow

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;
}

  

 

 

 

back to top