![]() |
#1 |
Junior Member
![]() 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; } |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
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 |
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |