Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2017, 02:17 AM   #1
danscott314
Junior Member
danscott314 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2017
Device: iBooks
(Fix) Blank page problem

So I ran into a small problem while trying to create en ePub book.

I wanted to have insert-page-break: always; at each chapter heading, and I also wanted to split html pages for maximum performance, but I kept getting a blank page at the beginning of each new html file.

I fixed this with a first-of-type selector:

Code:
h2 {
    page-break-before: always;
}

h2:first-of-type {
    page-break-before: avoid;
}
Hope this helps! Good luck.
danscott314 is offline   Reply With Quote
Advert
Old 01-26-2017, 02:41 AM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 9,909
Karma: 56938221
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Most books are coded with one file per chapter AND one chapter per file. This avoids any need for page-break before coding.

Sent from my Nexus 7 using Tapatalk
PeterT is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
First page blank kimpe Editor 4 06-20-2016 12:04 AM
Page blank before and after book image page osiris12 Sigil 12 05-28-2015 04:27 PM
1st page replaced by blank "Chapter 1" page tone-alone Calibre 1 07-12-2014 02:58 PM
Weird KPW blank home page problem Stingo Amazon Kindle 0 03-07-2013 06:19 PM
Blank first page spaze Writer2ePub 3 05-15-2011 11:41 AM


All times are GMT -4. The time now is 04:11 PM.


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