Modal Bric Background [SOLVED]

Hi,
is it possible to do the background a little bit darker when modal open ?
Thanks for the help
tom

Hey @tom2

I’m not on my Mac. But it should be a class like this.

.modal-backdrop.show {
   background-colour: #myColor;
}

Probably the only attribute you need to add would be opacity.

Hi @PeteSharp
thanks. for your help. This is not a class ? Where I have to put the code?
tom

Hey @tom2,

In the page header put

<style>
.modal-backdrop.show {
    opacity: 0.9;
}
</style>

If you change the 0.9 to 1 it will be a solid colour.

You can add .modal-backdrop.show to the class manager, but unfortunately the class manager won’t change the opacity attribute, it can however change the colour. So to change the opacity you have to place the style in the page header for now.

Hi @PeteSharp
I try it before I wrote you again. But I forgot the thing :blush:
Thanks a lot for your help
tom

1 Like