View Single Post
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