# Get rid of modal background with CSS

**URL:** https://meta.discourse.org/t/get-rid-of-modal-background-with-css/228684
**Category:** Support
**Created:** [May 31, 2022, 11:50pm UTC](https://meta.discourse.org/t/get-rid-of-modal-background-with-css/228684 "2022-05-31T23:50:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [May 31, 2022, 11:50pm UTC](https://meta.discourse.org/t/get-rid-of-modal-background-with-css/228684/1 "2022-05-31T23:50:45Z")

</div>

Does anybody know how I can get rid of the modal background via CSS? No matter what I do, it looks like it wont remove.

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/3/3/c33b7833642279d96989e24cd77fe81fcfc6131f.png)  
is what I mean

Thanks for any help!

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [June 1, 2022, 3:00am UTC](https://meta.discourse.org/t/get-rid-of-modal-background-with-css/228684/2 "2022-06-01T03:00:47Z")

</div>

Welcome to Meta @darkpixlz 👋

If you’re talking about the dark overlay behind the modal, you can hide it with something like this

```css
.modal-backdrop.in {
  display: none;
}

```

If you’re talking about the shadow behind the modal, you can remove it with something like this

```css
.modal-inner-container {
  box-shadow: none;
}

```

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [June 1, 2022, 10:05pm UTC](https://meta.discourse.org/t/get-rid-of-modal-background-with-css/228684/3 "2022-06-01T22:05:10Z")

</div>

> [@Johani](#):
>
> ```plaintext
> .modal-backdrop.in {
> display: none;
> }
> 
> ```

Thank you, this is the one that worked for me 👍

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 16, 2022, 4:39am UTC](https://meta.discourse.org/t/get-rid-of-modal-background-with-css/228684/4 "2022-08-16T04:39:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
