MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   ePub (https://www.mobileread.com/forums/forumdisplay.php?f=179)
-   -   Retaining formatting in inline links (https://www.mobileread.com/forums/showthread.php?t=235942)

MacEachaidh 03-15-2014 03:40 PM

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; }

Is there code I can use that essentially says "just leave it with the formatting it already has" ?

mrmikel 03-16-2014 08:44 AM

What program are you using to do this? Is this a calibre problem?

MacEachaidh 03-16-2014 08:57 AM

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.

DiapDealer 03-16-2014 11:07 AM

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.

Tex2002ans 03-16-2014 05:11 PM

Sample Images can also speak a thousand words.


All times are GMT -4. The time now is 06:56 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.