![]() |
#1 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Dec 2023
Device: none
|
bad page breaks (CSS keep options?)
Hi all,
I've gotten most of my epub file working, except for pages breaking where I don't want them to: Any code/tips for: - keeping headers will following paragraph - keeping short tables from breaking between pages - top/bottom of page minimums (2 lines) This particular file was built from the bottom up with good HTML/CSS coding and converted to epub in Calibre (worked great!). I just need to know what to change to improve appearance and functionality as an ebook. Thanks! |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,291
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Ensure each chapter is split into its own xhtml file in the epub. That ensures each chapter starts on a fresh page.
Or, you could wrap the header and the first couple of paragraphs in the code mentioned below, but not really the best way. You could wrap the table in a div. eg... Code:
<div class="nopagebreak"> <table> .... </table> </div> Code:
.nopagebreak { break-inside: avoid; page-break-inside: avoid; } |
![]() |
![]() |
Advert | |
|
![]() |
Tags |
coding, css, keep option, page breaks, tables |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Paragraph breaks become page breaks when converting to mobi | Allreader | Conversion | 6 | 07-19-2021 01:08 AM |
Bad Signup Options On Web Sites | ebusinesstutor | General Discussions | 11 | 01-15-2013 02:18 AM |
ADE breaks CSS --> CSS Validation: Parse Error / Value Error | dasboeh | ePub | 4 | 12-10-2012 03:25 AM |
Converting to PDF help? Bad page breaks and no TOC produced. | Jokerfwb | Conversion | 6 | 07-24-2012 10:36 PM |
Adding page breaks in Calibre breaks ePubcheck validation | bookraft | Conversion | 16 | 03-01-2011 01:23 PM |