Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have some code in my Firefox userContent.css that sets the background color for the about:blank page. However, the about:blank color also seems to apply to the text area background for creating mesages in Google Mail.

How can I set the Google Mail text background in userContent.css so that it doesn't use the same color as about:blank?

Here's my CSS for the colored about:blank:

@-moz-document url-prefix(about:blank)
        background-color:      #330000 !important;

And here's my unsuccessful attempt at a fix (using info from here):

@-moz-document domain("mail.google.com")
        background-color: white !important;

Update: Here is a picture of what happens from using the about:blank CSS:


share|improve this question
I'm not expert in css but: 1 I think you have the url-prefix business wrong. For example, I feel an url-prefix should look like url-prefix(about:) and not url-prefix(about:blank) because the latter is now an url and not just a prefix; 2 the styles link you provided is from 2009. Many Google sites evolve very rapidly and old styles may no longer work. –  user151227 Sep 14 '13 at 2:44
Could you provide an image to illustrate what you mean re. the gmail "text background"? –  user151227 Sep 14 '13 at 5:28
@vasa1 The about:blank background stuff won't work without url-prefix. I tried domain and others, but url-prefix was it for about-blank. In general though, I think it's supposed to be domain, but it didn't help my problem. Also, here's a picture demonstrating what happens: s10.postimg.org/wfq5j81xj/user_Content_behavior.png –  mellowmaroon Sep 14 '13 at 6:35

Your Answer


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

Browse other questions tagged or ask your own question.