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

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2026, 04:17 AM   #1
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
CSS being ignored -- looking for workaround

I have a book containing tables containing rows that have this rule:
Code:
tr {
  vertical-align: top;
}
They look OK on other platforms, but show up as middle-aligned on my Libra II. It seems that it is ignoring the CSS and using the default.

Similarly, I have another book with inline tables subject to the following rules:
Code:
table {
  display: inline-table;
  vertical-align: middle;
}
Again, the vertical-align rule is ignored, and the table is top-aligned with the surrounding text.

Can anyone suggest a workaround to allow me to fix these alignment issues?

Last edited by Phssthpok; 06-27-2026 at 04:27 AM.
Phssthpok is offline   Reply With Quote
Old 06-27-2026, 06:35 AM   #2
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 837
Karma: 2111023
Join Date: Sep 2013
Device: Kobo Sage
I don't know what you're using to edit the books. But in Calibre's Editor, you can use the Live CSS tab in the File Preview pane (at least, that's where it is on my system) to see what might be overriding your CSS:

https://manual.calibre-ebook.com/edi...live-css-panel

Hopefully, that'll give you a starting point to figure out what's happening.
enuddleyarbl is offline   Reply With Quote
Old 06-28-2026, 08:21 AM   #3
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
It seems the problem is down to the rendering engine used for EPUBs. It seems to ignore vertical-align rules for table elements. If I convert to KEPUB, it works fine.

However, the displayed font size is now about half what it was when the book was an EPUB, too small to read. If I change the font size so it's readable, EPUBs come out as "font-size: bloody-enormous". Is there a way to set display defaults for KEPUBs separately for those used for EPUBs? Or do I have to convert all my books (8700+) from EPUB to KEPUB and re-upload them all? Or (plan B) find all the books affected by this problem (a dozen or so) and add "body { font-size: 2em }" to each of them...

Last edited by Phssthpok; 06-28-2026 at 01:10 PM.
Phssthpok is offline   Reply With Quote
Old 06-28-2026, 01:01 PM   #4
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by enuddleyarbl View Post
I don't know what you're using to edit the books. But in Calibre's Editor, you can use the Live CSS tab in the File Preview pane (at least, that's where it is on my system) to see what might be overriding your CSS:

https://manual.calibre-ebook.com/edi...live-css-panel

Hopefully, that'll give you a starting point to figure out what's happening.
I'm using Calibre, and everything shows up fine in the editor preview pane, the calibre viewer, and every other platform I've tried. The only styles being applied are those I listed.

Last edited by Phssthpok; 06-28-2026 at 01:08 PM.
Phssthpok is offline   Reply With Quote
Old 06-28-2026, 01:03 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 52,778
Karma: 180988364
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
There is a patch called Unify Font sizes which makes the font size come close to matching between the two renderers. I would also suggest the My 10 Line Spacing Value patch which allows matching the line height for kepubs closer to the one use for epubs.

The Kepub rendering engine is ePub3 and understands the ePub subset of CSS3 while the RMSDK rendering engine is ePub2 and supports very little CSS3.
DNSB is offline   Reply With Quote
Old 06-28-2026, 01:31 PM   #6
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by DNSB View Post
There is a patch called Unify Font sizes which makes the font size come close to matching between the two renderers. I would also suggest the My 10 Line Spacing Value patch which allows matching the line height for kepubs closer to the one use for epubs.

The Kepub rendering engine is ePub3 and understands the ePub subset of CSS3 while the RMSDK rendering engine is ePub2 and supports very little CSS3.
But vertical-align has been there since CSS1. Oh well.

I tried using Calibre's conversion dialog: in Look & Feel I unchecked "disable font size rescaling" and set "Font size key: 18.0" but it had no apparent effect.

Where can I find the patches you mentioned?
Phssthpok is offline   Reply With Quote
Old 06-28-2026, 01:43 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 52,778
Karma: 180988364
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Vertical align for tables was introduced in CSS2 but use of all the properties wasn't until CSS3. This allowed replacing the valign attribute according to my vague memories.

For firmware 4.38.23697, check the Patches for Firmware 4.38.23697 thread.

You can also check the KoboPatch WebUI: customization (NickelMenu, KOReader) and patching via your browser for an alternate approach to patching.
DNSB is offline   Reply With Quote
Old 06-28-2026, 02:21 PM   #8
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by DNSB View Post
Vertical align for tables was introduced in CSS2 but use of all the properties wasn't until CSS3. This allowed replacing the valign attribute according to my vague memories.

For firmware 4.38.23697, check the Patches for Firmware 4.38.23697 thread.

You can also check the KoboPatch WebUI: customization (NickelMenu, KOReader) and patching via your browser for an alternate approach to patching.
Ah, I'd forgotten about valign, it's been so long...

So now in addition to the CSS I have a valign attribute -- belt & braces. If the deprecated valign is ignored, the CSS vertical-align will do the job. And primitive renderers which ignore vertical-align in tables will be primitive enough to honor the valign attribute.

And lo, it works -- except that for the book with inline tables, adding valign=middle to the table element has no effect. Oh well, in that one case I'll have to convert to KEPUB and somehow fix the font size.

Thanks for the links!
Phssthpok is offline   Reply With Quote
Old 06-28-2026, 03:14 PM   #9
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: 83,974
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Phssthpok View Post
I have a book containing tables containing rows that have this rule:
Code:
tr {
  vertical-align: top;
}
They look OK on other platforms, but show up as middle-aligned on my Libra II. It seems that it is ignoring the CSS and using the default.

Similarly, I have another book with inline tables subject to the following rules:
Code:
table {
  display: inline-table;
  vertical-align: middle;
}
Again, the vertical-align rule is ignored, and the table is top-aligned with the surrounding text.

Can anyone suggest a workaround to allow me to fix these alignment issues?
You want the code to be...
Code:
td {
  vertical-align: top;
}
I've tested it with ADE 2.0.1 so it should work with RMSDK on a Kobo.
JSWolf is offline   Reply With Quote
Old 06-28-2026, 04:04 PM   #10
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by JSWolf View Post
You want the code to be...
Code:
td {
  vertical-align: top;
}
I've tested it with ADE 2.0.1 so it should work with RMSDK on a Kobo.
Aha. Yes, I solved it by adding valign=top to the <tr> elements, but I see that this should also work.

Meanwhile I'm banging my head against the inline-table problem. Converting to KEPUB requires me to insert body { font-size: 2em } when converting from EPUB, but then various other funnies show up: italicised text is also bold, and hyperlinks are underlined despite being styled with text-decoration: none. Editing the KEPUB with Calibre, it looks fine and everything has the stylings I specified, but the Kobo knows better! Aaaargh!
Phssthpok is offline   Reply With Quote
Old 06-28-2026, 04:07 PM   #11
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: 83,974
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You need to install the patch that makes the font sizes the same for KePub and ePub.
JSWolf is offline   Reply With Quote
Old 06-29-2026, 05:59 AM   #12
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by JSWolf View Post
You need to install the patch that makes the font sizes the same for KePub and ePub.
But will that stop italic text being boldened and links underlined despite my CSS rules?
Phssthpok is offline   Reply With Quote
Old 06-29-2026, 11:30 AM   #13
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
I solved my inline table problems by replacing the tables with spans having display: inline-block and a suitable vertical-align, then used block elements inside those for the table rows. So I can avoid using KEPUBs altogether, which saves me a lot of hassle.
Phssthpok is offline   Reply With Quote
Old 06-29-2026, 02:37 PM   #14
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: 83,974
Karma: 153695583
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Phssthpok View Post
But will that stop italic text being boldened and links underlined despite my CSS rules?
The patch to make KePub and ePub font sizes the same have nothing to do with CSS. It's to do with the system software being patched.

Last edited by JSWolf; Yesterday at 12:12 PM.
JSWolf is offline   Reply With Quote
Old Yesterday, 10:29 AM   #15
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 638
Karma: 95237
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by JSWolf View Post
The pactch to make KePun and ePub font sizes the same have nothing to do with CSS. It's to do with the system software being patched.
What I thought. It seems KEPUBs fix some problems but then have a whole different set of issues, so I think I'm best off avoiding them. But thanks for all the advice and guidance.
Phssthpok is offline   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
Sigil CSS parser will not understand the new nested CSS KevinH Sigil 12 04-12-2026 03:05 PM
Method to Convert Fancy CSS to Everyday CSS? enuddleyarbl ePub 25 07-25-2022 02:07 PM
Customize viewer css. pygments.css not found drglenn Viewer 2 12-18-2020 04:52 PM
pagestyle.css extra / integrated in stylesheet.css / or not at all? chaot Workshop 14 02-24-2017 11:10 PM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 11:24 AM.


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