View Full Version : How do I change text color in ePub from black to default?

11-21-2012, 10:09 AM
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, 12:15 PM
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, 12:26 PM
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

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;

Various other places in the CSS also have the "color : #000000;" entry.
Should I delete the whole line or just the hash and number?

11-21-2012, 12:27 PM
The whole line. Colour "#000000" is black.

11-21-2012, 12:32 PM
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, 12:50 PM
Ok. I've removed references to black color. It seems to have worked. Have reuploaded it.