Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-07-2011, 05: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, 11:12 AM   #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: 45,159
Karma: 27110894
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 offline   Reply With Quote
Advert
Old 04-08-2011, 07: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


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Justification problem even with extra css hiperlink Recipes 2 03-09-2011 08:40 AM
Adding new chapter, what about CSS link? spaze Sigil 3 02-24-2011 05:35 AM
The option "--extra-css" doesn't work slex Conversion 2 02-19-2011 06:26 AM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM
a few extra css questions marbs Recipes 12 11-20-2010 10:15 AM


All times are GMT -4. The time now is 06:45 AM.


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