11-21-2012, 09:09 AM | #1 |
Connoisseur
Posts: 60
Karma: 10
Join Date: Mar 2011
Location: UK
Device: Kindle 3, iPhone, iPad, PC
|
How do I change text color in ePub from black to default?
I have created an epub which was converted to mobi and sold on the Amazon Kindle store.
After 2 months of being on sale I have been contacted by Amazon who have said the book is unreadable on color devices set to a black background. However. I tested the book in this white text on black background on a Kindle Fire and and iPad apps and it works fine. Is it possible that there are other devices it doesn't work on? And how do I edit the epub so the color is set to a default color that isn't black? |
11-21-2012, 11:15 AM | #2 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You shouldn't be explicitly setting the colour at all, except in places where you really need to. Look for the string "color" in your CSS and delete it.
|
11-21-2012, 11:26 AM | #3 |
Connoisseur
Posts: 60
Karma: 10
Join Date: Mar 2011
Location: UK
Device: Kindle 3, iPhone, iPad, PC
|
Thanks for replying Harry.
I've opened my epub. Then the CSS file. The standard font I use which has a color is listed in the CSS as Code:
p.body { font-family : "Minion Pro", serif; font-weight : normal; font-style : normal; font-size : 1.17em; text-decoration : none; font-variant : normal; line-height : 1.2; text-align : left; color : #000000; text-indent : 0px; margin : 0px; Should I delete the whole line or just the hash and number? |
11-21-2012, 11:27 AM | #4 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
The whole line. Colour "#000000" is black.
|
11-21-2012, 11:32 AM | #5 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
I should add too that it's really not a good idea to hard-code the font used for the body text, unless you have a very good reason for doing so. It will prevent the user from selecting their personal choice of font.
|
11-21-2012, 11:50 AM | #6 |
Connoisseur
Posts: 60
Karma: 10
Join Date: Mar 2011
Location: UK
Device: Kindle 3, iPhone, iPad, PC
|
Ok. I've removed references to black color. It seems to have worked. Have reuploaded it.
Thanks! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text stays black in white on black mode. | bizzybody | Kindle Formats | 7 | 11-25-2013 07:54 AM |
Change all text color when converting? | Steven630 | Conversion | 4 | 08-15-2012 08:43 AM |
How to change default text editor | Calyr Elf | Sigil | 3 | 06-01-2012 12:02 PM |
Centering text epub for NOOK Color | photoluminations | Conversion | 3 | 12-15-2011 12:01 PM |
Any epub reader for PC allows me to change text and background color? | ttluisa | General Discussions | 5 | 05-11-2010 11:04 PM |