paul-2011
paul-2011

Reputation: 704

Customize Firefox background color of the browser between page load

I would like to customize the background color of the browser canvas to black as per instructions from here but it doesn't seem to work for me, I'm using ChromEdit to edit the css config.

I would like to change it to black instead of white.

UserChrome.css:

browser { background-color: #000 !important; }

Anyone every tried to do that?

Upvotes: 1

Views: 1676

Answers (2)

paa
paa

Reputation: 5054

This question is more suitable for superuser.com but since you already got a reply I'll give in.

If my memory serves well about:blank used to be a chrome page. Now it a content page, though one with special treatment. But for the purpose of tweaking its css we can consider it no different than example.com

So edit userContent.css with the following code

@-moz-document url("about:blank") {
  body {
    background-image:
    linear-gradient(
      to right, 
      red, 
      orange, 
      yellow
    );
  }
}

Upvotes: 2

Makyen
Makyen

Reputation: 33326

The error appears to be that you are using the file name UserChrome.css. The file should be userChrome.css. Note the lowercase "u". When using userChrome.css the code:

browser { background-color: #000 !important; }

works for me.

However, under normal conditions, this is only displayed for a very brief amount of time. In some configurations, it may not be visible.

Upvotes: 1

Related Questions