Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-18-2024, 03:32 PM   #1
Krytes
Enthusiast
Krytes began at the beginning.
 
Posts: 48
Karma: 24
Join Date: Jul 2008
Device: Kobo Clara BW, Boox Tab Mini C, Boox Note 2
Kobo ignoring link styles?

I have an epub with a lot of links that I don't want to look like links. I tried to change the style of the <a> tag by putting <style>a {color: black; text-decoration: none}</style> in the head of the xhtml file, which works fine in other epub readers, but not in Kobo's reader - it still displays the links in grey, underlined style.
Is there a way to change Kobo's default link style, or to force it to follow the style in my epub?
Krytes is offline   Reply With Quote
Old 11-18-2024, 05:07 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Are the books on your Kobo in kepub format rather than epub format, by any chance? If so the Kobo firmware does force some override CSS on hyperlinks in kepubs, namely:
Code:
a:link, a:visited, a:hover, a:active { border-bottom: 1px dotted black !important; color: #696969 !important; }
jackie_w is offline   Reply With Quote
Advert
Old 11-18-2024, 09:33 PM   #3
Krytes
Enthusiast
Krytes began at the beginning.
 
Posts: 48
Karma: 24
Join Date: Jul 2008
Device: Kobo Clara BW, Boox Tab Mini C, Boox Note 2
Yes, they are, thank you. Is there anything that I can do about it? Converting to epub makes everything horribly slow, it jumps to links rather than showing a nice popup like the kepub does, and the links are still underlined anyways.

I tried marking my styles important in the kepub and a few other things, but no luck.
Krytes is offline   Reply With Quote
Old 11-19-2024, 04:36 AM   #4
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,679
Karma: 16307824
Join Date: Sep 2022
Device: Kobo Libra 2
You could post in the kobopatch request thread to ask for an edit to the stylesheet, but that's about it.
Aleron Ives is offline   Reply With Quote
Old 11-19-2024, 08:45 AM   #5
repilo
Connoisseur
repilo has learned how to buy an e-book online
 
Posts: 92
Karma: 88
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
I don't know if this will help you. I wanted my kepub TOC entries to stop looking light gray (they are also links) and I accomplished this with the following:

Code:
div.sgc-toc-level-1 a { -webkit-text-fill-color:inherit; }
But I haven't the slightest idea why it works. However, it may perhaps serve as a starting point for you...
repilo is offline   Reply With Quote
Advert
Old 11-19-2024, 08:51 AM   #6
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: 79,654
Karma: 145864619
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 repilo View Post
I don't know if this will help you. I wanted my kepub TOC entries to stop looking light gray (they are also links) and I accomplished this with the following:

Code:
div.sgc-toc-level-1 a { -webkit-text-fill-color:inherit; }
But I haven't the slightest idea why it works. However, it may perhaps serve as a starting point for you...
It's because then renderer used for KePub uses Webkit.
JSWolf is offline   Reply With Quote
Old 11-20-2024, 12:35 AM   #7
Krytes
Enthusiast
Krytes began at the beginning.
 
Posts: 48
Karma: 24
Join Date: Jul 2008
Device: Kobo Clara BW, Boox Tab Mini C, Boox Note 2
Thanks very much, that works beautifully to change the colour.
Krytes is offline   Reply With Quote
Reply

Tags
epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo weird rendering of complex styles... Patrick V Kobo Reader 1 03-10-2024 03:16 PM
Kobo Nickel css styles Amon_Re Kobo Developer's Corner 4 10-02-2022 08:53 PM
Kobo Glo and publisher's styles arturg Kobo Reader 3 01-31-2014 09:08 PM
iBooks ignoring a:link css style Alan Newson ePub 9 03-19-2012 07:49 AM
Problem with calibre ignoring font styles ndr Conversion 4 10-09-2011 12:51 PM


All times are GMT -4. The time now is 05:30 AM.


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