View Single Post
Old 01-20-2016, 04:01 PM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,827
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by GrannyGrump View Post
I do not know why it works for 90 percent of the book, and then fails on the final two uses. (In ADE it fails, in Sigil Preview, you cannot see soft page-breaks like that)

see attachments:
Attachment 145693Attachment 145694Attachment 145695

On the third screen-shot, there should be a page-break right after the dashed line.

I thought it might be because I nested the Headings from h3 down to h4, but it made no difference to change it to all h3. I have fiddled with the css back and forth to no avail. I am blinded from staring at semi-colons and curly brackets.

Can someone take a look at the attached epub ? (a partial only, with other xhtml files stripped out)
This is a Robert Benchley book, public domain in Life+70, don't be paranoid!

Many thanks for any input.
Hi Abuelita (Abuelita is the spanish word for Granny)

Your problem is due to that after

Code:
  <hr class="chaprule" />
and before

Code:
  <div class="chapheadbrk">
you need to put a <p> tag (something like "<p>&nbsp;</p>"). Of that way "page-break-before: always" from the chapheadbrk class will work. It's not necessary to include a div with the style "page-break-after: always" after <hr class="chaprule" />.

I attach the respective epub (your epub, but modified) so you can check all the things better.

Regards
Rubén

PS: By the way, very nice layout of your book!
Attached Files
File Type: epub Benchley-1921.epub (50.3 KB, 186 views)

Last edited by RbnJrg; 01-20-2016 at 04:42 PM.
RbnJrg is offline   Reply With Quote