View Single Post
Old 03-15-2014, 02:40 PM   #1
MacEachaidh
Browser
MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.
 
MacEachaidh's Avatar
 
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; }
Is there code I can use that essentially says "just leave it with the formatting it already has" ?
MacEachaidh is offline   Reply With Quote