Background styling #485
-
is there any easy way to set the background color in a simpel way whenever i use the option Class it always breaks all the default styling even when i only set the background color, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I guess it depends on what you mean by easy 😉. The way to change the backdrop colour is via CSS. You need to override the following class in your CSS file and specify the particular background colour you want to use. .bm-container {
background-color: rgba(0,0,0,0.5);
} For reference, the reason things break when you add a class via the |
Beta Was this translation helpful? Give feedback.
I guess it depends on what you mean by easy 😉.
The way to change the backdrop colour is via CSS. You need to override the following class in your CSS file and specify the particular background colour you want to use.
For reference, the reason things break when you add a class via the
Class
parameter, is that it replaces the default classes with whatever class you provide. So unless you provide a class that styles all aspects of the modal you get results like those in your screenshot.