# \#main-outlet bg hides custom category background when making a topic a banner

**URL:** <https://meta.discourse.org/t/main-outlet-bg-hides-custom-category-background-when-making-a-topic-a-banner/26359>\
**Category:** Bug\
**Created:** [3월 15, 2015, 10:41오전 UTC](https://meta.discourse.org/t/main-outlet-bg-hides-custom-category-background-when-making-a-topic-a-banner/26359 "2015-03-15T10:41:09Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [3월 26, 2015, 3:28오후 UTC](https://meta.discourse.org/t/main-outlet-bg-hides-custom-category-background-when-making-a-topic-a-banner/26359/5 "2015-03-26T15:28:46Z")

</div>

> [@mbs](#):
>
> This means I cannot just use the category background image to upload a category image

No, that works fine. It’s just that the default styles aren’t prepared for a colorful background so things look off.

But yes, my snippet is taken from my own forum and part of a larger customization. It’s a demo on what can be done, not what must be done. 😉 If you simply remove the `html` and `.d-header` blocks as well as the borders, **bottom** margin and padding on `#main-outlet` and set a white background, you basically get the same result without the weird `body:before` thing. 😃

---

_[View the full topic](https://meta.discourse.org/t/main-outlet-bg-hides-custom-category-background-when-making-a-topic-a-banner/26359)._
