Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to override default colors in received HTML emails. I have followed this Howto, and modified my userContent.css accordingly. Basically, I need white text on dark background:

$ cat userContent.css
body {
  color: white !important; 
  background-color: #303030 !important;

td {
  color: white !important;
  background-color: black !important;

This works OK for the background color, but the my desired font color (white) is being ignored, even when I use !important.

How can I make sure, that all received HTML emails have white font on dark bacckground?

share|improve this question
up vote 1 down vote accepted

You have changed the colors only on two HTML elements (body and td). You may need to do that for other elements, or * for all elements.

share|improve this answer

You have to use text-color instead of color.

share|improve this answer
Consider adding some sources to backup your suggested solution. – HalosGhost Jul 12 '14 at 21:06
Why text-color? It doesn't appear to exist! See for instance: w3.org/TR/CSS/#properties – vinc17 Jul 12 '14 at 21:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.