View Single Post
Old 09-03-2014, 03:21 PM   #3
faltradl
Guru
faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.
 
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
Ergänzung:

Es geht natürlich noch eleganter (sauberer), d.h. ohne die Übersteuerei.

im CSS:
h2 {page-break-before:avoid;}
h3 {page-break-before:avoid;}
.kapitel {page-break-before: always;}

Und die Seite dann so:
<body>
<div class="kapitel">
<h2>Band I</h2>
<h3>1. Die drei Geschenke von Herrn d'Artagnan Vater</h3>
<p>Am ersten Montag des ....
</div>

Welche Variante technisch besser ist weiß ich nicht, da ich nicht weiß wie diverse Readersoftware damit klar kommt. Aber für das Auge der Liebhaber von sauberen Quelltexten ist es schöner.

Last edited by faltradl; 09-04-2014 at 06:52 AM.
faltradl is offline   Reply With Quote