Super User is a question and answer site for computer enthusiasts and power users. 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 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("")
        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: – mellowmaroon Sep 14 '13 at 6:35

You must log in to answer this question.

Browse other questions tagged .