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:
Hope this helps! Good luck.
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;
}