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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2012, 09:04 AM   #1
Bas
Enthusiast
Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.
 
Posts: 24
Karma: 464
Join Date: Dec 2011
Device: none
How to create black hyperlink font colour?

In my epub I'v created a lot of hyperlinks to web sites plus contents links to various sections and would like to make the fonts black rather than the light blue they appear. I can't see any reference to colours in any of the sections? Wonder if anyone can help?
Bas is offline   Reply With Quote
Old 01-30-2012, 09:23 AM   #2
Hellmark
Wizard
Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.
 
Hellmark's Avatar
 
Posts: 2,521
Karma: 3638167
Join Date: Jun 2009
Location: Maryland Heights, Missouri, USA
Device: Nokia N800, PRS-505, Nook STR Glowlight
You have to use CSS to change the color of text and links.

Here's a good site with pointers on how to do that.
Hellmark is offline   Reply With Quote
 
Advertisement
Old 01-30-2012, 09:24 AM   #3
Keroberos
Zealot
Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.Keroberos can program the VCR without an owner's manual.
 
Keroberos's Avatar
 
Posts: 127
Karma: 194002
Join Date: Aug 2009
Device: Kobo Mini (4GB), Nook Classic wi-fi, iPod Touch (Bluefire Reader)
Change the Color of Text

You can add this line to your css,

Code:
a {color: #000000; }
This will make all links in the book black.

+1 for the w3 school, been a very helpfull resource for me. Just remember that not everything there will work in epub. The current epub spec only uses css version 2, whereas css is up to version 3.

Last edited by Keroberos; 01-30-2012 at 10:05 AM. Reason: Added comment about w3 school.
Keroberos is offline   Reply With Quote
Old 01-30-2012, 11:15 AM   #4
Bas
Enthusiast
Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.Bas has a complete set of Star Wars action figures.
 
Posts: 24
Karma: 464
Join Date: Dec 2011
Device: none
Many thanks all - will fiddle
Bas is offline   Reply With Quote
Old 01-30-2012, 04:22 PM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,257
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
a { color: inherit; } should make links the same colour as the surrounding text (or parent element), whatever that is.
Jellby is offline   Reply With Quote
Old 07-17-2013, 07:46 PM   #6
EmriPamundur
Junior Member
EmriPamundur began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2013
Device: none
I have tried this:

a:link { color: #006600;}
a:hover { color: #666600;}
a:visited { color: #996633;}

but the links still show up as bright blue.

I tried

a { color: #006600;}

which equally had no effect.

Any ideas?
EmriPamundur is offline   Reply With Quote
Old 07-17-2013, 10:10 PM   #7
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,743
Karma: 5072190
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by EmriPamundur View Post
I have tried this:

a:link { color: #006600;}
a:hover { color: #666600;}
a:visited { color: #996633;}

but the links still show up as bright blue.

I tried

a { color: #006600;}

which equally had no effect.

Any ideas?
None of this is supported on ePub books. This is browser stuff.

Dale
DaleDe is offline   Reply With Quote
Old 07-18-2013, 04:10 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,257
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by EmriPamundur View Post
I tried

a { color: #006600;}

which equally had no effect.
Where? I mean, which reader did you try that shows blue links?
Jellby is offline   Reply With Quote
Old 07-18-2013, 11:48 AM   #9
EmriPamundur
Junior Member
EmriPamundur began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2013
Device: none
Quote:
Originally Posted by DaleDe View Post
None of this is supported on ePub books. This is browser stuff.
Dale, so you're saying all the above answers are not valid for changing the color of a link in an epub file, OP's original question?
EmriPamundur is offline   Reply With Quote
Old 07-18-2013, 11:49 AM   #10
EmriPamundur
Junior Member
EmriPamundur began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2013
Device: none
Quote:
Originally Posted by Jellby View Post
Where? I mean, which reader did you try that shows blue links?
I was seeing them in Sigil. On Apple Reader and Kindle Fire they are a much more agreeable shade of blue.
EmriPamundur is offline   Reply With Quote
Old 07-18-2013, 12:29 PM   #11
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 984
Karma: 1382338
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro, Kindle 3/WiFi - Retired:Clie UX50, T415, ...
Quote:
Originally Posted by EmriPamundur View Post
I was seeing them in Sigil. On Apple Reader and Kindle Fire they are a much more agreeable shade of blue.
One thing to keep in mind is that there is absolutely nothing that you can do in the coding of an ePub that forces the reader software to display anything in a particular color or shade of grey.

At the very most, your coding instructions are merely a polite request that such be done. Many reading apps will comply with such requests, provided they are coded properly, but some apps will ignore them.
dwig is offline   Reply With Quote
Old 07-18-2013, 12:31 PM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,257
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Do the links have some class attached? Are there any other "color" instances in the CSS?
Jellby is offline   Reply With Quote
Old 07-18-2013, 07:35 PM   #13
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,589
Karma: 14407087
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by Bas View Post
In my epub I'v created a lot of hyperlinks to web sites plus contents links to various sections and would like to make the fonts black rather than the light blue they appear. I can't see any reference to colours in any of the sections? Wonder if anyone can help?
Um...I'd like to gently remind the poster that many, many readers offer "night mode," which switches the font to white on a black background. If you set the font-color to black, it will not switch, and will be invisible. Need to strongly recommend against this idea.

Hitch
Hitch is offline   Reply With Quote
Old 07-19-2013, 04:07 AM   #14
GrannyGrump
Persnickity Nitpicker
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 569
Karma: 2673214
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
I've always felt that color: inherit gives better results if you insist on non-blue links. Although, then the underline is the only clue for the user.
GrannyGrump is offline   Reply With Quote
Old 07-19-2013, 05:10 AM   #15
Turtle91
Guru
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 669
Karma: 3807234
Join Date: Dec 2012
Location: Shannon, Ireland today
Device: iPhone 5/iPad 1&2/Surface Pro/Kindle PW
Quote:
Originally Posted by grannyGrumpy View Post
I've always felt that color: inherit gives better results if you insist on non-blue links. Although, then the underline is the only clue for the user.
I agree...except that I usually get rid of the underline too! Lol

I figure the "www" and the ".org/com" is a pretty big clue for today's savvy readers. Plus, I don't want to rub the noses of those users of older devices in the fact that there is a link in their ePub that they can't use!
Turtle91 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
Re Entering Title in Bold or Bold And Colour Font pricespringer Library Management 1 05-09-2011 05:45 AM
PRS-950 does the 950 come in black colour? FinancialWar Sony Reader 7 04-13-2011 10:25 AM
Pandigital Novel Black colour ereader Canada Excaliber51 More E-Book Readers 1 01-07-2011 03:05 AM
Page Black Font White lcbannon Calibre 4 11-27-2009 11:45 AM
Grey, not black, font colour in eBook: how to fix? giacecco Sony Reader 2 01-04-2009 09:09 AM


All times are GMT -4. The time now is 11:20 PM.


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