Subtitle background color with transparency

Hi,

I changed the background color of submenu, which was originally black, using a CSS code that I picked from a past post.

Now, I want to add some transparency to it, meaning that it is not completely transparent, but a little bit transparent so that you can vaguely see the picture beneath the submenu. Can you give me a code to do the trick?

Regards,

Hello,

It looks like you are using this CSS code:

#masthead #mainnav-mobi,
#masthead #mainnav-mobi ul.sub-menu {
    background-color: #dacee2;
}

Try to use this CSS code instead:

#masthead #mainnav-mobi,
#masthead #mainnav-mobi ul.sub-menu {
    background-color: rgba(218, 206, 226, 0.95);
}

0.95 in the code above is the opacity, feel free to adjust it.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.
aThemes Support

1 Like

Thank you, roman, for your quick response.
It worked perfectly and the submenu looks exactly what I wanted it to.

Kind regards,

1 Like

Great, you are welcome! :slight_smile:

Kind Regards, Roman.
aThemes Support