Quantcast
Channel: MobileRead Forums - Reading and Management
Viewing all articles
Browse latest Browse all 24033

(Fix) Blank page problem

$
0
0
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.

Viewing all articles
Browse latest Browse all 24033

Trending Articles