Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-15-2010, 06:13 PM   #1
NASCARaddicted
Addict
NASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and grace
 
Posts: 312
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch
epub: links in toc should not be underlined ...

Hello

I have the following problem:

I created an XHTML file with some links. To be exact: On page 2 (after the title) I created a TOC.

The code is like:

Code:
<a href="#link1">chapter 1</a>
<a href="#link2">chapter 1</a>
Now, when I open the xhtml file in Firefox, there is an underline on the links. But I don't want that.

So I use a separate css, and write the following:

Code:
a[href] {
    color: black;
    text-decoration: none;
    }
Now, in Firefox, the underline is gone and the colour is black. But when I convert the xhtml file into an epub with calibre, the underline is back and the colour is blue. I opened the epub and looked at the css and now it said:

Code:
a[href] {
    color: blue;
    text-decoration: underline;
    cursor: pointer
    }
So, am I doing something wrong ? Or how can I get rid of the underline ?

Thanks for your help
NASCARaddicted is offline   Reply With Quote
Old 06-15-2010, 06:20 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,116
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre currently forces that style on links to workaround a bug in the rendering of links in an old versions of ADE
kovidgoyal is offline   Reply With Quote
Old 06-15-2010, 06:26 PM   #3
NASCARaddicted
Addict
NASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and graceNASCARaddicted herds cats with both ease and grace
 
Posts: 312
Karma: 43106
Join Date: Apr 2009
Location: Germany
Device: BeBook One, Pocketbook Touch
Quote:
Originally Posted by kovidgoyal View Post
calibre currently forces that style on links to workaround a bug in the rendering of links in an old versions of ADE
o.k. thanks for the fast reply.
NASCARaddicted is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC and Index links in Sigil Bamber ePub 10 11-11-2010 02:12 PM
TOC Links on Aluratek Libre summy Calibre 2 06-11-2010 10:29 AM
How do I get the TOC to be active links in PDB TobyJohnson Calibre 1 04-08-2010 06:29 PM
ePub eBooks (Fully Edited w/ TOC) Fanfiction, Forumfiction [Links removed by OP] Guns4Hire Reading Recommendations 12 02-25-2010 03:53 AM
Scriptures and TOC links? yessirrom Sony Reader 5 06-23-2009 08:34 AM


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


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