View Single Post
Old 01-19-2022, 04:22 PM   #1
fabianmoreno01
Member
fabianmoreno01 began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2022
Device: Kobo Aura One
Inserting page breaks before headings

Hello!

I'm reading a book which is mostly short-form poetry and I'd like each poem to start on a new page. (I'm on a Kobo Aura One with Calibre 3.48 as my Mac is running on High Sierra.)

I've tried adding the following piece of code:

Code:
page-break-before: always;
at the following position:

Code:
h1, h2, h3, h4, h5, h6 {
	page-break-before: always;
	font-weight: normal;
	font-style: normal;
	text-align: left;
	page-break-after: avoid;
}
I'm not getting any change when I load the ebook back on the Kobo. Is it a coding problem or an upload issue? (Also, I'd probably need it only for h4-5-6 or something like that, though I'm not sure how to know exactly.)

Thank you!
fabianmoreno01 is offline   Reply With Quote