Hello,
I’ve managed it to change the opacity of the main content when the mobile_menu is showed. (example in private content)
But I want to have a dark opacity over the whole page. So a background color. But this is not working
This is the code I have:
.show_mobile_menu #main {
opacity: 0.4
background-color: #303030;
}
Note: the opacity works, the background color doesn’t.
So how can I have a “dark” opacity over the whole page when the mobile menu is active?
Thanks in advance!
Hey De Groot,
Could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
Rikard
I’ve put it in the private content.
Hi!
The CSS you are using will change the opacity but cannot change the background color as the main content and elements inside it has it’s own bg colors. Remove the CSS and try this instead..
/* Content Overlay*/
.show_mobile_menu:after {
content: "";
display: block;
position: fixed; /* could also be absolute */
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 10;
background-color: rgba(0,0,0,0.85);
}
It should look something like this
Best regards,
Vinay Kashyap
Great answer, exactly what I want.
Thank you very much!
Hey!
You are most welcome! we really appreciate if you rate our theme on themeforest :)
Please feel free to get in touch with us if you have any questions.
Thank you for using Enfold :)
Best regards,
Vinay Kashyap