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 09-16-2010, 03:50 AM   #1
Amalthia
Guru
Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.Amalthia once ate a cherry pie in a record 7 seconds.
 
Amalthia's Avatar
 
Posts: 937
Karma: 1960
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650
Remove underline from links in epub

Hi,

I've tried these two codes in the css override box to remove the blue hyperlink and underline but they aren't working.

a {text-decoration: none; color: black;}
a href {text-decoration: none; color: black;}

Am I using the wrong codes? Or do I need to add the css to the epub file?

I'd appreciate any and all help,

Thanks!


EDIT: Nevermind! I found the answer. I needed to use this code instead.

a {text-decoration: none; color: black;}
a [href] {text-decoration: none; color: black;}

Last edited by Amalthia; 09-16-2010 at 03:53 AM. Reason: found answer
Amalthia is offline   Reply With Quote
Old 02-09-2014, 12:56 PM   #2
Ahriman
Junior Member
Ahriman began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2014
Device: Kindle for Android
It doesn't work for me. I go to Preferences>User Stylesheet and copy your text and it still doesn't work
Ahriman is offline   Reply With Quote
 
Enthusiast
Old 02-09-2014, 01:00 PM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,615
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Sony T2, Kindle Fire HDX 8.9 , Kindle for PC
with some readers you have to completely remove the <a>.....</a> tags to stop the blue underlines from showing
cybmole is offline   Reply With Quote
Old 02-09-2014, 06:37 PM   #4
Ahriman
Junior Member
Ahriman began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2014
Device: Kindle for Android
How to do that? I am not very skilled in stuff like that, but this is very annoying
Ahriman is offline   Reply With Quote
Old 02-09-2014, 07:51 PM   #5
JimmyR
Ebook Enthusiast
JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.JimmyR ought to be getting tired of karma fortunes by now.
 
Posts: 207
Karma: 839738
Join Date: Jun 2011
Device: Kindle Keyboard, Touch, PW
Quote:
Originally Posted by Ahriman View Post
I go to Preferences>User Stylesheet and copy your text and it still doesn't work
Try
Code:
a:link, a:link * {
  color: #000 !important;
  text-decoration: none !important;
}
Sometimes the link elements may contain child elements which are styled instead of the links themselves. It just depends on how the particular html was written. Example:
Code:
<a href="file1.html" class="toc"><span class="blue"><span class="underline">Acknowledgments</span></span></a>
The span styles will override the parent link styles.

Last edited by JimmyR; 02-09-2014 at 08:16 PM.
JimmyR is offline   Reply With Quote
Old 02-10-2014, 02:07 AM   #6
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 2,615
Karma: 1089170
Join Date: Sep 2010
Device: Kobo aura HD, Kobo Arc, Sony T2, Kindle Fire HDX 8.9 , Kindle for PC
Quote:
Originally Posted by Ahriman View Post
How to do that? I am not very skilled in stuff like that, but this is very annoying
get skilled or get help. each book is different, there are no shortcuts.

On my Sony devices, anything that is in <a> tags will appear as blue underline, none of the solutions posted here will over-ride that. Other devices may behave differently but for Sony, the only fix is to strip out the <a> tags with calibre editor or Sigil, or learn to live with it.
cybmole is offline   Reply With Quote
Old 02-10-2014, 08:41 AM   #7
Ahriman
Junior Member
Ahriman began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2014
Device: Kindle for Android
Quote:
Originally Posted by JimmyR View Post
Try
Code:
a:link, a:link * {
  color: #000 !important;
  text-decoration: none !important;
}
Sometimes the link elements may contain child elements which are styled instead of the links themselves. It just depends on how the particular html was written. Example:
Code:
<a href="file1.html" class="toc"><span class="blue"><span class="underline">Acknowledgments</span></span></a>
The span styles will override the parent link styles.
Thank you! It worked!
Ahriman 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
is it possible to remove ( from epub)... cybmole Calibre 13 10-11-2010 11:57 AM
Links do not appear in epub illustrata Calibre 0 08-21-2010 01:21 PM
Newsweek: how to remove timestamps after title links kbfprivate Calibre 2 05-09-2009 02:18 AM
Book Designer - Links underline just ONE word? pitolee Sony Reader 21 12-05-2008 10:08 AM


All times are GMT -4. The time now is 01:18 AM.


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