![]() |
#1 |
Annabelle Viau
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
|
![]()
Hi,
Is it possible to specify a custom colour for links in a .mobi ebook? In my ePubs I use the following CSS, but it isn’t working when I transfer to mobi. Also, with the latest version of Kindle Previewer, text-decoration: none; also doesn’t work anymore... Any workaround? Code:
a { color: #A00000; -webkit-text-fill-color: #A00000; text-decoration: none; } Last edited by momoha; 02-25-2019 at 07:16 AM. |
![]() |
![]() |
![]() |
#2 |
Annabelle Viau
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
|
So I found a really weird workaround for the links colour, but still couldn’t solve the text-decoration problem.
For the links colour, the problem happens when I delete my Cover.xhtml. As it is specified in the Amazon guidelines that there shouldn’t be a html page for the cover, I just removed it in the spine, and now the links keep their custom colours. This text-decoration thing still annoys me quite a lot so if anyone has a solution it would greatly help me... |
![]() |
![]() |
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,073
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
To remove the text decoration on links I believe that you have to use:
Code:
text-decoration: none !important; |
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,772
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
EDIT: I don't think it's a good idea to disable text decoration for links in e-ink devices. There you don't have colours (just shades of gray) and it would be difficult to readers to know where there is a link without underlined words. Last edited by RbnJrg; 02-26-2019 at 06:12 AM. |
|
![]() |
![]() |
![]() |
#5 |
Klak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
for .mobi use custom html tags <mbp:nu>for text without decorations</mbp:nu>
edit: "without decorations" means no underlines as in this case Last edited by najgori; 02-25-2019 at 03:17 PM. |
![]() |
![]() |
![]() |
#6 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Are you quite sure that the old Mobipocket tags are still working? Because I seem to vaguely recall that they haven't in some time now. Didn't those start throwing Kindlegen errors some years back? Hitch |
|
![]() |
![]() |
![]() |
#7 |
Klak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
i belive they are still working in mobi7.
|
![]() |
![]() |
![]() |
#8 | ||
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
![]() Quote:
And yes, in eInks, if you don't have underlining, how the hell would ANYONE know that the text=links? I go through this conversation at least once a day with a client, for the same reasons. Go with what people know and understand. I had a client that INSISTED that her TOC "links" be black, right? I warned her, I tried refusing to do it, but...client is always right, right? Wanna guess which book we got back, in under 90 days, due to a KQN, over the links being black and not underlined? YUP. Why? Because customers complained that the TOC "wasn't interactive." It was--but they didn't see it that way. They never even tried it, because it was out of context. Not blue, not underlined. Offered FWIW. Hitch |
||
![]() |
![]() |
![]() |
#9 |
Klak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
it's ok for "external" toc to be black, while html toc gotta be both blue and underlined and god forbid to put html toc at the end of book - "remember the golden rule! whoever has the gold, makes the rules!"
|
![]() |
![]() |
![]() |
#10 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The TOC at the end thing is related to how they calculate pages read, for the KENP. If you put clickbait or the TOC at the back of the book, Jane could buy the book, click to see the TOC, go to the end of the book, and that would trigger "all pages read" for payment to the author. Amazon doesn't want that--it's "cheating" effectively. They want to pay for the pages read, period. That's the reasoning for that now. The reasoning for it before the KENP was somewhat different, and it's moot now. Hitch |
|
![]() |
![]() |
![]() |
#11 |
Klak
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 174
Karma: 150374
Join Date: Sep 2011
Location: Belgrade, Serbia
Device: many
|
yup. if someone could come up with something like... let's call it media query
@media night-mode {} ... <irony off> i have no horse in this race so as poet once said "whatever's cool with me". |
![]() |
![]() |
![]() |
#12 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Spoiler:
But I can think of so MANY other things I wish I had...mqs that targeted specific devices, like the PPW, Voyage and Oasis, and "publisher font" rather than screen resolutions; mqs for the iOS devices...(sigh). Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub to mobi font colour change | EdwardTrunk | Conversion | 4 | 09-29-2014 09:27 AM |
Creating a Custom Column Link | a_daley | Library Management | 5 | 02-16-2014 05:56 AM |
Mobi hypertext link not working | newbi | Calibre | 5 | 11-16-2011 05:36 PM |
Overridng link colour with extra CSS | cyruss | Conversion | 2 | 04-08-2011 07:58 AM |
PRS-650 Modifications (Hacks, Custom Firmware, etc.) Link-Collection | Achiever | Sony Reader | 8 | 11-27-2010 10:07 AM |