Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

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 cavab
  • 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

Seçilmiş Həll

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