Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 03:17 PM   #1
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 590
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
Can you reflow table rows across multiple screens?

I have a fairly long table with fairly lengthy rows. Depending on screen-size, the rows could be longer than the screen height.

When viewing this epub2 in KOReader, the program will automatically move rows that are too long to fit in the remaining screen space onto the next screen. Obviously this a) creates unsightly gaps in the text, and b) potentially creates unrenderable text if the row proves taller than the screen height.

Is there a way to CSS my way out of this? Ideally, something that lets the row partially reflow onto the next screen rather than moving the whole row?
ElMiko is online now   Reply With Quote
Old Today, 04:04 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,904
Karma: 154365287
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
There is a way around it. Make each line or a few lines a separate row with no lines. Then it would split as it needs to.
JSWolf is online now   Reply With Quote
Advert
Old Today, 05:54 PM   #3
phillipgessert
Addict
phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.phillipgessert ought to be getting tired of karma fortunes by now.
 
phillipgessert's Avatar
 
Posts: 333
Karma: 3200122
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
If it were me, I’d wrangle some kind of regex search that changes all the td’s and tr’s to divs or something, and then restyle the whole thing as something other than a table. It sounds like it’s far too dense to be handled as one, though it’s possible I’m visualizing it wrong.

You might could accomplish something similar without messing around in the markup by just tinkering with display rules in the CSS, though it may not work if KOReader handles row breaking in a way that can’t be overcome.
phillipgessert is offline   Reply With Quote
Old Today, 06:49 PM   #4
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 590
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
@JSWOLF - making a separate row every 3-4 words would technically solve the problem of text becoming potentially unrenderable, but YIKES would it look awful and be insanely cumbersome given that these cells sometimes contain more than a hundred words...

@phillipgessert - Yeah, unfortunately, I'm hoping there's a way to preserve the table format. Basically, i'm looking for some that would be the opposite of

Code:
page-break-inside: avoid;
If this doesn't exist as a reliable epub2 fix, then I'll definitely have to fall back on your solution with divs and floats

Last edited by ElMiko; Today at 07:00 PM.
ElMiko is online now   Reply With Quote
Old Today, 06:54 PM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,904
Karma: 154365287
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You can't do it the way you want. My way is really the only way to do it. I'm saying to do it every few lines, not words.

Yes, it could be cumbersome to do this, but once done, it's done. You just have to make the spacing between the rows that should be one row small as possible.
JSWolf is online now   Reply With Quote
Advert
Old Today, 07:27 PM   #6
ElMiko
Fanatic
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 590
Karma: 65460
Join Date: Jun 2011
Device: Kindle Voyage, Boox Go 7
per @phillipgessert, I've come up with this:

Code:
<div class="tablediv">
   <div class="row">
      <p class="colL"><i>LABEL1</i>:</p>

      <p class="colR">Longish text... Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc.</p>
    </div>

    <div class="row">
      <p class="colL"><i>LABEL2</i>:</p>

      <p class="colR">Longer text... Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo. Mauris vulputate, leo ac facilisis vulputate, enim orci interdum augue, in blandit quam turpis quis dui. Morbi dictum luctus velit nec faucibus. Cras vitae tortor purus, ut tincidunt mauris. Sed at velit nisl. Donec eu mauris tortor, interdum condimentum erat. Nam egestas turpis eget nibh laoreet pharetra. Suspendisse a sem eros, ut pulvinar enim. In sed elit eu nulla accumsan tincidunt eget sit amet ipsum. Nullam ut massa rutrum dolor placerat tempor accumsan eget purus.</p>
    </div>
</div>
where the css is:

Code:
.colL {
	margin: 0;
	width: 4em;
	max-width: 50%;
	float: left;
	text-align: left;
	}
.colR {
	margin: 0 0 0 4.5em;
	text-align: justify;
	}
.row {
	margin: 0 0 0.1em;
	clear: both;
	}
.tablediv {
	margin: 1em auto;
	padding: 0 5%;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	}
p {
	display: block;
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 0;
	margin-right: 0;
	line-height: 1.15em;
	}
Any feedback on how this might break (and what it would look like if it breaks)? I'm inclined to remove the "max-width" on "colL", given that if it were to trigger, the left margin on "colR" would be precluded anyway...

Last edited by ElMiko; Today at 07:34 PM.
ElMiko is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple rows in a column Fynjisx Calibre 5 08-18-2022 10:27 AM
Multiple Table of Contents AliceWonder ePub 18 08-30-2019 09:28 AM
Selecting multiple rows in Calibre amyk0202 Calibre 5 09-11-2014 11:50 AM
Multiple table rows for book in custom_column_x Man Eating Duck Development 4 03-14-2014 08:46 AM
iBooks: Avoid page breaks within table rows/cells ckirchho ePub 7 06-12-2012 04:11 PM


All times are GMT -4. The time now is 07:43 PM.


MobileRead.com is a privately owned, operated and funded community.