Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2025, 08:22 PM   #16
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,809
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by PilcrowandStanza View Post
THIS WORKED!!
thank you so much!
You are welcome

Quote:
Yes, this is for a book with 2nd level headers (more than just chapter titles) that has to continue from the text above, can't just break to a new page.
The property "page-break-after: avoid" controls page breaks on ereaders based on RMSDK and properties "break-after: avoid" and "-webkit-column-break-after: avoid" control page breaks on ereaders based on Readium/Webkit. So, unless your e-reader is very poor at handling epubs (like CoolReader), using the published style will prevent unwanted page breaks wherever you include it.

Quote:
Originally Posted by RbnJrg View Post
Employ the following style:

1. In your .css stylesheet:

Code:
.noBreakAfter {
    -webkit-column-break-after: avoid; /* This is for epub3, epub2 ebooks will ignore it */
    page-break-after: avoid; /* This is for epub2; epub3 ebooks will ignore it */
    break-after: avoid; /* Also for epub3 */
}
2. In your .xhtml:

Code:
<h2 class="noBreakAfter">Your title here</h2>

<p>Your following text here ... </p>
RbnJrg is offline   Reply With Quote
Old 07-31-2025, 03:41 AM   #17
jugaor
Enthusiast
jugaor began at the beginning.
 
jugaor's Avatar
 
Posts: 33
Karma: 10
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
Hello everyone.

I've been using both lines for many years:
Code:
page-break-after: avoid;
break-after: avoid;
(in that order) with success in all tests (except, of course, the limited Cool, FBReader, Readera, etc.).

That's why this remark intrigues me:
Quote:
Originally Posted by RbnJrg View Post
and now ereaders based on webkit/readium finally gave support to "-webkit-column-break-after: avoid"
@RbnJrg, what devices or apps have you found that work with -webkit-column-break-after and don't honor break-after ? (I haven't found any yet.)
Since I prefer to avoid proprietary instructions (unless absolutely necessary), is this really necessary or are you just being overly protective?

Gracias!
jugaor is offline   Reply With Quote
Old 07-31-2025, 12:14 PM   #18
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,809
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jugaor View Post
Hello everyone.

I've been using both lines for many years:
Code:
page-break-after: avoid;
break-after: avoid;
(in that order) with success in all tests (except, of course, the limited Cool, FBReader, Readera, etc.).

That's why this remark intrigues me:

@RbnJrg, what devices or apps have you found that work with -webkit-column-break-after and don't honor break-after ? (I haven't found any yet.)
Since I prefer to avoid proprietary instructions (unless absolutely necessary), is this really necessary or are you just being overly protective?

Gracias!
All Android applications that support epub3 (Cantook, Kobo for Android, Reasily, Lithium, Infinity Reader, PocketBook, BookFusion, the old Gitden -but now is not working with modern Androids) will only honor
-webkit-column-break-after, -webkit-column-break-before and -webkit-column-break-inside. Also Thorium, Koodo Reader and ADE 4.x for PC and Foliate for Linux need those properties in order to handle page breaks.

The properties you mention are honored by ADE 2.x/3.x (ADE Legacy, that employs RMSDK), ereaders based on RMSDK and Calibre Viewer. Tolino Shine 5 needs the webkit properties. So, in order to cover al posibilities, employ always:

Code:
.noBreakAfter {
    -webkit-column-break-after: avoid;
    page-break-after: avoid;
    break-after: avoid;
}
Y nada que agradecer
RbnJrg is offline   Reply With Quote
Old Yesterday, 10:13 AM   #19
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 463
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Apologies for derailing the topic @RbnJrg, but the footnoted philosophy text you posted has me in a tizzy. How are the footnotes footnotes being incorporated into the main body text like a physical book (rather than as a pop-up or a link to a separate html sheet)???
ElMiko is offline   Reply With Quote
Old Yesterday, 10:38 AM   #20
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,553
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I think that's a KOReader feature.
Jellby is online now   Reply With Quote
Old Yesterday, 10:43 AM   #21
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 463
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@Jellby - Thanks. Also... sadness.
ElMiko is offline   Reply With Quote
Old Yesterday, 12:00 PM   #22
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,809
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by ElMiko View Post
Apologies for derailing the topic @RbnJrg, but the footnoted philosophy text you posted has me in a tizzy. How are the footnotes footnotes being incorporated into the main body text like a physical book (rather than as a pop-up or a link to a separate html sheet)???
It's as Jellby says, a KOReader feature. For epubs without images and with undemanding layouts, KOReader (an epub2 e-reader) is one of the best.
RbnJrg is offline   Reply With Quote
Old Yesterday, 08:26 PM   #23
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,520
Karma: 169115146
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
You can use footnotes in a chapter using standard ePub3 features. KOReader is not needed.
DNSB is online now   Reply With Quote
Old Yesterday, 09:29 PM   #24
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 463
Karma: 65460
Join Date: Jun 2011
Device: Kindle
@DNSB - Roger that. But to get that effect in epub2, that's dependent on the rendering software (eg KOReader)?
ElMiko is offline   Reply With Quote
Reply

Tags
header text keep together


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the header/footer text size. bmcs Calibre 2 03-09-2020 06:13 AM
Possible to remove header text? eTIPS Kindle Formats 2 08-19-2015 06:33 AM
Stripping a file from header text? norweger PDF 8 03-11-2015 03:49 PM
Getting text length from mobi header. mattst Kindle Formats 7 03-29-2012 06:31 AM
PDF Conversion - Removing Header / Footer Text heb Sony Reader 9 07-11-2010 11:02 PM


All times are GMT -4. The time now is 04:37 AM.


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