Good idea! I created this epub file:
Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Foo</title>
</head>
<body>
<div class="chapter" id="ch02">
<p class="chapterTitle">Chapter 1</p>
</div>
<p class="paraNoIndent">Blah blah</p>
<p class="para">Blah blah</p>
<p class="paraTemp">There should be a page break before this paragraph.</p>
<p class="para">Blah blah</p>
etc
Styles:
Code:
.chapter
{
display: block;
page-break-before: always;
}
p.chapterTitle
{
font-size: 1.45em;
margin-bottom: 1.50em;
margin-top: 3.00em;
text-indent: 0.00em;
margin-right: 0.00em;
margin-left: 0.00em;
text-align: center;
font-weight: normal;
font-style: normal;
color: rgb(0,0,0);
}
.paraNoIndent
{
font-size: medium;
font-weight: normal;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
text-align: left;
text-indent: 0em;
}
.para
{
font-size: medium;
font-weight: normal;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
text-align: left;
text-indent: 1.5em;
}
.paraTemp
{
font-size: medium;
font-weight: normal;
margin-top: 0;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
text-align: left;
text-indent: 1.5em;
page-break-before: always;
}
I tested this with: Marvin, Kobo Aura HD (Adobe RMSDK), Adobe Digital Editions 2.0.1 and the epub viewer built into Calibre with these results:
Code:
Break Before Chapter? Break Before Paragraph?
Marvin Yes Yes
Aura HD No Yes
ADE No Yes
Calibre No Yes
So it seems Marvin is the odd one out. My guess is that the others only insert a break if there has not already "just" been one, but I have no idea how they judge the proximity of the proceeding break. One without an intervening p tag perhaps? Perhaps Kovid could help?