![]() |
#1 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Struggling with table page breaks
I have on my kobo an ebook with the following table definition:
Code:
table { border: none; table-layout: auto; width: 100%; line-height: normal; } tr { page-break-inside: avoid; page-break-after: auto; } td { padding: 2px; border: none; } Code:
<body>
<p>Some text</p>
/* unwanted page break occurs here */
<table>
<tbody>
<tr>
<td>column1</td>
<td>column2</td>
</tr>
[...]
<tr>
<td>column1</td>
<td>column2</td>
</tr>
<tbody/>
</table>
</body>
How can I avoid this unwanted page break on a kobo device? |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you are using KePub, try ePub and if using ePub, try KePub.
Also, if this ePub does not have widows and orphans set to 1 in the body, do so. This is the CSS code I use for body. Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } Last edited by JSWolf; 12-20-2022 at 05:07 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
That is similar to my settings.
Further, the only way for me to get it to work is to avoid inserting any <p>text</p> entry just before the <table> tag to begin the table. Placing <h1></h1> entries before the <table> entry work fine. It is curious. Last edited by DrChiper; 12-22-2022 at 09:56 AM. |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What is the CSS code for <p>?
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |
Help with assigning correct page breaks and page numbers to a textbook [converting fr | cateroseg | Calibre | 0 | 02-14-2018 10:32 PM |
iBooks: Avoid page breaks within table rows/cells | ckirchho | ePub | 7 | 06-12-2012 03:11 PM |
epub to mobi h1 page breaks not starting on new page | wannabee | Conversion | 4 | 08-02-2011 12:46 AM |
Adding page breaks in Calibre breaks ePubcheck validation | bookraft | Conversion | 16 | 03-01-2011 01:23 PM |