Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Changing the background color when opening an image?

  • 3 replies
  • 36 have this problem
  • 1 view
  • Last reply by cor-el

more options

I just installed Firefox on my new Windows laptop, and when I open an image in a new tab the background around the image is a dark gray. On my old computer the background is white, which I much prefer. How do I change this setting?

I just installed Firefox on my new Windows laptop, and when I open an image in a new tab the background around the image is a dark gray. On my old computer the background is white, which I much prefer. How do I change this setting?

Chosen solution

It is a new feature in Firefox 11+ versions to display a single image centered with an almost black background.

It is added by this stylesheet:

  • resource://gre/res/TopLevelImageDocument.css

You can look at this extension to set your preferred background color and remove the centering.

See also these forum threads for other solutions (e.g. userContent.css):

Read this answer in context 👍 7

All Replies (3)

more options

Chosen Solution

It is a new feature in Firefox 11+ versions to display a single image centered with an almost black background.

It is added by this stylesheet:

  • resource://gre/res/TopLevelImageDocument.css

You can look at this extension to set your preferred background color and remove the centering.

See also these forum threads for other solutions (e.g. userContent.css):

more options

Wow, thanks for the quick reply. That add on did exactly what I wanted.

more options

You're welcome