Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #544507

    Hi Genius’

    I’ve been wracking my brains on this one but I’ve tried all ways with Firebug to change a dropdown menu background to opacity 0.2 (or even transparent) but keep the text at opacity 1. If I use the following css it changes both background and text to opacity 0.3…

    ul.sub-menu {
    opacity: 0.3 !important;
    }
    Can you help me please, please, please?

    #544639

    Hi Annemarie!

    Try setting a transparent background instead.

    ul.sub-menu { background: rgba(255,255,255,0.3) !important; }
    

    But you may need to set it on the list items or links instead of the sub menu background. Send us a link to your page and we’ll take a look.

    Best regards,
    Elliott

    #544783

    Sadly that didn’t work either so I reverted it back to ..

    ul.sub-menu {
    opacity: 0.7 !important;
    }

    I’d like to use it on many of our sites, but a current one that I am testing it on where you can see how it behaves is DogWhisperer.dk

    Thanks!

    #544824

    Hey!

    This should work.

    #top .sub-menu {
        background: rgba(255,255,255,0.3) !important;
    }
    .sub-menu, .sub-menu * { background: transparent !important; }
    

    Cheers!
    Elliott

    #544841

    SUPERB. Looks lovely, thank you so much.

    #545130

    Hi,

    Glad we could help :-)

    Best regards,
    Rikard

    #605720

    I tried this solution to change the Full Width Sub Menu background and text color along with font size which all worked, but hover does not. It changed the background color of the entire drop down container instead of each item independently.

    My current CSS:

    
    #top .sub-menu { font-size: 17px;
        background: #1684b0 !important;
    }
    .sub-menu, .sub-menu * { background: transparent !important; }
    
    #top .sub-menu:hover {
        background: #2e2e2e !important;

    Thanks
    Jon

    #605749

    Hey!

    The code you are using is for the main menu and also the code block is not closed correctly so it may be causing issues. please remove it and use the below code to change the full width menu background color

    /* background color */
    .av-submenu-container {
        background-color: gold!important;
    }

    Cheers!
    Vinay

    #605763

    Vinay,

    Thanks for the reply and for noticing that I was missing an }, but unfortunately hat didn’t fix issue.

    Here are my test pages as an example http://9ea.702.myftpupload.com/
    The background color and hover are correct on the top level of the Full Width Sub Menu, however, it is the hover background on the drop down items under “Common Questions” that isn’t working. The entire container changes when you hover over an item instead of only the background color of each item as you hover.

    Thanks
    Jon

    #605873

    Hey!

    This CSS rule mentioned below is causing the issue

    
    #top .sub-menu:hover {
        background: #2e2e2e !important;
    }

    Change it to

    #top .sub-menu li:hover {
        background: #2e2e2e !important;
    }
    

    If you cannot find it just add the below code in Enfold > General Styling > Quick CSS

    
    #top .sub-menu:hover {
        background: transparent !important;
    }
    #top .sub-menu li:hover {
        background: #2e2e2e !important;
    }

    Best regards,
    Vinay

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.