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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2011, 06:56 AM   #1
cyruss
Junior Member
cyruss began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2011
Device: Kindle
Overridng link colour with extra CSS

Hi all.

I'm trying to override the default link colour (from blue to black) with an external CSS, but it doesn't work. I've tried these and other variations:

a {color:black}
a:link {color:black}
.calibre10 {color:black} // this is class label for links in the HTML.

I've also tried using external stylesheets from the command line, and adding the CSS text into the text field. Note that other overrides, such as body {background-color:yellow} works fine.

Any ideas? I'm coverting from HTML to epub.
cyruss is offline   Reply With Quote
Old 04-07-2011, 12:12 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,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC overriding link colors is not going to work. This is because of a workaround to support broken rendering of links in some readers.
kovidgoyal is online now   Reply With Quote
Old 04-08-2011, 08:58 AM   #3
cyruss
Junior Member
cyruss began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2011
Device: Kindle
It worked fine after a subsequent epub-to-epub conversion. Is that expected?
cyruss 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
Justification problem even with extra css hiperlink Recipes 2 03-09-2011 09:40 AM
Adding new chapter, what about CSS link? spaze Sigil 3 02-24-2011 06:35 AM
The option "--extra-css" doesn't work slex Conversion 2 02-19-2011 07:26 AM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 06:09 PM
a few extra css questions marbs Recipes 12 11-20-2010 11:15 AM


All times are GMT -4. The time now is 07:57 AM.


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