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?


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.


You have to use text-color instead of color.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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