Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

2 Answers 2

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 at 21:06
    
Why text-color? It doesn't appear to exist! See for instance: w3.org/TR/CSS/#properties –  vinc17 Jul 12 at 21:43

Your Answer

 
discard

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.