Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-20-2016, 01:30 PM   #1
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
Trouble with page-break-before[-after]: always

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:
Click image for larger version

Name:	Page-brk-Works--A.png
Views:	457
Size:	28.6 KB
ID:	145693Click image for larger version

Name:	Page-brk-Works--B.png
Views:	496
Size:	106.4 KB
ID:	145694Click image for larger version

Name:	Page-brk-FAIL.png
Views:	451
Size:	112.7 KB
ID:	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.
Attached Files
File Type: epub Benchley-1921.epub (50.2 KB, 201 views)
GrannyGrump is offline   Reply With Quote
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,764
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, 185 views)

Last edited by RbnJrg; 01-20-2016 at 04:42 PM.
RbnJrg is offline   Reply With Quote
Advert
Old 01-20-2016, 04:50 PM   #3
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
Thank you Ruben, for your eagle eyes. I kept adding and subtracting css elements, till I don't know what anything was doing any more. Including myself. Now I can sleep peacefully.


And thank you for the compliment on the book layout. I hope to finish building the book and post to the Library in a day or two.
GrannyGrump is offline   Reply With Quote
Old 01-20-2016, 04:58 PM   #4
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
DELETE DOUBLE POST
GrannyGrump is offline   Reply With Quote
Old 01-20-2016, 05:27 PM   #5
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,764
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by GrannyGrump View Post
Thank you Ruben, for your eagle eyes. I kept adding and subtracting css elements, till I don't know what anything was doing any more. Including myself. Now I can sleep peacefully.
You are welcome Granny! And very good that you can sleep now
RbnJrg is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cover Page Break? Themus Calibre 16 07-27-2015 09:58 AM
No page break for H2 RickAltman Calibre 2 06-25-2012 11:02 AM
PAGE BREAK JFS-NMF Recipes 0 03-04-2011 09:15 AM
Page break before h2 question Amalthia Calibre 9 04-17-2009 06:33 PM
Page break before <b> flowoeB Calibre 14 04-12-2009 03:05 PM


All times are GMT -4. The time now is 10:37 PM.


MobileRead.com is a privately owned, operated and funded community.