# Images in Firefox now surrounded by black

**URL:** https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437
**Category:** Factual Questions
**Created:** [April 1, 2012, 3:44am UTC](https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437 "2012-04-01T03:44:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Gary\_T](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@Gary\_T](https://boards.straightdope.com/u/Gary_T)
#### Post date: [April 1, 2012, 3:44am UTC](https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437/1 "2012-04-01T03:44:48Z")

</div>

Sometime in the last week or so I noticed images in Firefox are now against a black background, where previously there were against a white background. In IE, they are still on a white background. Can anyone explain what happened, and how I can reinstate the white backgrounds in Firefox?

---

<div class="post-metadata">

### Author: ![rowrrbazzle](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/rowrrbazzle/32/414_2.png) [@rowrrbazzle](https://boards.straightdope.com/u/rowrrbazzle)
#### Post date: [April 1, 2012, 3:48am UTC](https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437/2 "2012-04-01T03:48:24Z")

</div>

(never mind)

---

<div class="post-metadata">

### Author: ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)
#### Post date: [April 1, 2012, 4:00am UTC](https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437/3 "2012-04-01T04:00:56Z")

</div>

Can you post a screenshot? Does it affect all images or only certain ones?

---

<div class="post-metadata">

### Author: ![drastic\_quench](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@drastic\_quench](https://boards.straightdope.com/u/drastic_quench)
#### Post date: [April 1, 2012, 4:09am UTC](https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437/4 "2012-04-01T04:09:12Z")

</div>

> [@Reply](#):
>
> Can you post a screenshot? Does it affect all images or only certain ones?

Anytime you right click and View Image.

---

<div class="post-metadata">

### Author: ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)
#### Post date: [April 1, 2012, 4:29am UTC](https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437/5 "2012-04-01T04:29:25Z")

</div>

You can change it back with this extension: [Old Default Image Style](https://addons.mozilla.org/en-US/firefox/addon/old-default-image-style/?src=search) (It also lets you set a custom background color if you prefer)

Discussion here:

> **[738948 - Provide Option with UI for Using User's Specified Background Color...](https://bugzilla.mozilla.org/show_bug.cgi?id=738948)**
>
> REOPENED (nobody) in Core - Layout. Last updated 2022-10-10.

Technical note: The actual style is hidden away in //gre/res/TopLevelImageDocument.css, which is not easily accessible to regular users. The extension makes it much easier to change.

---

<div class="post-metadata">

### Author: ![yabob](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/yabob/32/2821_2.png) [@yabob](https://boards.straightdope.com/u/yabob)
#### Post date: [April 1, 2012, 2:40pm UTC](https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437/6 "2012-04-01T14:40:21Z")

</div>

The new style also centers the image on the page. I would actually prefer that they display the image in “view image” with a one pixel border, whatever the background color, and however they align it, so you can tell where the actual edges of transparent gifs and pngs are. If I can make it do that, it might be worth tweaking with.

---

<div class="post-metadata">

### Author: ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)
#### Post date: [April 1, 2012, 6:02pm UTC](https://boards.straightdope.com/t/images-in-firefox-now-surrounded-by-black/617437/7 "2012-04-01T18:02:01Z")

</div>

> [@yabob](#):
>
> The new style also centers the image on the page. I would actually prefer that they display the image in “view image” with a one pixel border, whatever the background color, and however they align it, so you can tell where the actual edges of transparent gifs and pngs are. If I can make it do that, it might be worth tweaking with.

I don’t know if the addon supports that, but you can do this with a modified userContent.css. I found this yesterday but I don’t have the link handy… Google around for “userContent.css view image border” or something similar and if you can’t find it, let me know and I’ll look again.
