# Global Notice: Background image and color disappears frequently

**URL:** https://meta.discourse.org/t/global-notice-background-image-and-color-disappears-frequently/51659
**Category:** Support
**Created:** [October 17, 2016, 9:10pm UTC](https://meta.discourse.org/t/global-notice-background-image-and-color-disappears-frequently/51659 "2016-10-17T21:10:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LilTrashPanda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/liltrashpanda/32/62053_2.png) [@LilTrashPanda](https://meta.discourse.org/u/LilTrashPanda)
#### Post date: [October 17, 2016, 9:10pm UTC](https://meta.discourse.org/t/global-notice-background-image-and-color-disappears-frequently/51659/1 "2016-10-17T21:10:57Z")

</div>

I’ve updated the CSS of the Global Notice (#ember811 and .alert.alert-info) to appear different in 5 specific categories (still default on Main Page and other categories), however I’ve noticed that either when using the “Back” shortcut to go from a “child” category to a “parent” (both of which share the edited CSS) or navigating to the Main Page and then back in to one of the categories that has the edited CSS, there are times when the Global Notice loses its background image and color entirely.

Although I’m not certain of the exact steps needed to reproduce this issue, it does happen fairly often and requires a hard refresh (ctrl+f5) to bring those elements back.

**Normal:**

 ![](https://global.discourse-cdn.com/meta/original/3X/1/f/1f4752160e8a943086877ece35db5450d7561890.png)

**Bugged:**

 ![](https://global.discourse-cdn.com/meta/original/3X/9/8/989332ad3dc05ec4aebe76a4bfe0c629ad436af6.png)

Here’s my CSS related to the Global Notice:

```plaintext
#ember811 {
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  background-image: url("http://www.deformers.com/_images/bgrd-iconX991.png");
  background-repeat: no-repeat;
  background-position: left;
  background-color: #7c6ba3;
  border: 10px solid transparent;
  border-radius: 6px;
  margin: 5px 0 20px 0px;
}

.alert.alert-info {
  color: #f4f4f4;
  background-color: rgba(244, 244, 244, 0);
  //width: 84%;
  padding: 10px;
  margin: 0px 0px 0px 170px;
}

```

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [October 17, 2016, 9:21pm UTC](https://meta.discourse.org/t/global-notice-background-image-and-color-disappears-frequently/51659/2 "2016-10-17T21:21:56Z")

</div>

Aha `#ember811` is the reason why the style isn’t being applied consistetly.

[https://meta.discourse.org/t/ember-numbers-do-they-change/23970/2?u=tgxworld](https://meta.discourse.org/t/ember-numbers-do-they-change/23970/2)

`.alert-global-notice` will probably be the class that you want to use 🙂

---

<div class="post-metadata">

### Author: ![LilTrashPanda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/liltrashpanda/32/62053_2.png) [@LilTrashPanda](https://meta.discourse.org/u/LilTrashPanda)
#### Post date: [October 17, 2016, 10:08pm UTC](https://meta.discourse.org/t/global-notice-background-image-and-color-disappears-frequently/51659/3 "2016-10-17T22:08:06Z")

</div>

Ah, I see!

After a bit of troubleshooting, looks like I was able to get it to look like I wanted it to using this new Class. Thanks so much!

For others that may be interested in the updated CSS (since things definitely got weird after I changed it), here ya go:

```plaintext
.alert-global-notice {
  -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  -moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  background-image: url("http://www.deformers.com/_images/bgrd-iconX991.png");
  background-repeat: no-repeat;
  background-position: left;
  padding-left: 175px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 5px;
  background-color: #7c6ba3;
  border-left: 10px solid transparent;
  border-top: 8px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid transparent;
  border-radius: 6px;
  margin: 16px 0px 16px 0px;
}

.alert.alert-info {
  color: #f4f4f4;
}

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/global-notice-background-image-and-color-disappears-frequently/51659/4 "2024-06-08T12:45:14Z")

</div>

This topic was automatically closed after 2790 days. New replies are no longer allowed.
