View Single Post
Old 06-16-2014, 06:13 AM   #1
sadhu44
Member
sadhu44 began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2012
Location: Sri Lanka
Device: none
'page-break-before|after: always' doesnt work

This is the code, created in Sigil 0.7.4:
<?xml version="1.0" encoding="utf-8" standalone="no"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
hr {page-break-after:always;}
</style>
</head>

<body>
<p>Lorem ipsum dolor sit amet</p>
<hr />

<p>Donec quis accumsan nibh. Sed dignissim,</p>
</body>
</html>

The <hr> appears in the finished epub, but paragraph Donec Quis is on the same page. I'm using Calibre ebook reader and Firefox epub reader add-on to view the finished epub.

I have tried setting 'page-break-after: always' into class=, style=, div, and nothing works.

I'm trying to put chapter endnotes for each xhtml doc (chapter). I want a page break before the notes.

I know I can put the endnotes in a separate xhtml doc. But I don't want to. Too darn much hassle for an 800+ page academic work. ...href="ch19-notes.xhtml#n4" is harder to keep track of then simply "#N4"
sadhu44 is offline   Reply With Quote