![]() |
#1 |
Browser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Retaining formatting in inline links
In the ePub I'm working on, I've applied character formatting to parts of each item listed in the ToC.
The problem: 1) Because the items are linked to the head of the chapters they each represent, ADE applies URL formatting (bold, blue and underlined) to each item, which obliterates the character formatting; but 2) If I apply code to stop the URL formatting, that also wipes out the character formatting. The code I'm using at the top of the stylesheet is this: Code:
a:link { color: black; text-decoration: none; } a:visited { color: black; text-decoration: none; } a:hover { color: black; text-decoration: none; } a:active { color: black; text-decoration: none; } |
![]() |
![]() |
![]() |
#2 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
What program are you using to do this? Is this a calibre problem?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Browser
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
|
Thanks for the reply.
No, I'm using a program called Jutoh to format it, but Jutoh isn't the one that imposes the URL-style formatting on coded links. ADE does that. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,548
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I don't experience the same thing with ADE when using the CSS you supplied. It all behaves as I would expect. But then again, I'm not entirely sure what you mean by "character formatting." And what is being obliterated. You seem to imply that your CSS code is working (which means that character formatting is being affected), but then in that case, you suggest that "something" is still being obliterated. What, exactly, are you saying you are "losing" in both of your scenarios?
Note also, that it's not really a good idea to try and force links to be indistinguishable from the regular text (by forcing font-colors and removing the underline). 1) A forced font-color of black could play havoc with many readers' "Night Mode" theme. 2) There's no easy way for a person to know it IS a link. They need to know at a glance that it's something they need to click/tap. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Sample Images can also speak a thousand words.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Retaining inline CSS in <img> tags | cabz | Conversion | 1 | 06-21-2013 12:13 AM |
Tags around inline TOC links | jhempel24 | Sigil | 0 | 01-08-2011 06:21 AM |
Request Retaining last page when shutting down | mihai@alaphant.nl | enTourage Archive | 7 | 12-17-2010 09:40 AM |
Retaining formatting in metadata (book description) | FizzyWater | Calibre | 5 | 05-13-2010 10:26 PM |
Editing Plucker docs and retaining links? | AceHarddrive | Reading and Management | 0 | 12-27-2006 07:25 PM |