![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,591
Karma: 4290425
Join Date: Jun 2009
Location: Foristell, Missouri, USA
Device: Nokia N800, PRS-505, Nook STR Glowlight, Kindle 3, Kobo Libra 2
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 128
Karma: 238654
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; } +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 09:05 AM. Reason: Added comment about w3 school. |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 464
Join Date: Dec 2011
Device: none
|
Many thanks all - will fiddle
|
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#8 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2013
Device: none
|
|
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2013
Device: none
|
|
![]() |
![]() |
![]() |
#11 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#12 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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?
|
![]() |
![]() |
![]() |
#13 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
![]() |
![]() |
![]() |
#14 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,202
Karma: 34984330
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.
|
![]() |
![]() |
![]() |
#15 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,312
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
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! ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Re Entering Title in Bold or Bold And Colour Font | pricespringer | Library Management | 1 | 05-09-2011 04:45 AM |
PRS-950 does the 950 come in black colour? | FinancialWar | Sony Reader | 7 | 04-13-2011 09:25 AM |
Pandigital Novel Black colour ereader Canada | Excaliber51 | More E-Book Readers | 1 | 01-07-2011 02:05 AM |
Page Black Font White | lcbannon | Calibre | 4 | 11-27-2009 10:45 AM |
Grey, not black, font colour in eBook: how to fix? | giacecco | Sony Reader | 2 | 01-04-2009 08:09 AM |