Changing Background Hover Color of Submenu Items

  • Author
    Posts
  • #63522
    kvalentk
    Power User

    Hello. I found the following code in this forum to change the background color of submenu items and tried it out, but it isn’t doing anything. I’ve tried it out both in the Cryout Creations Mantra Settings > Miscellaneous Settings and on Appearance > Customize > Additional CSS. The submenu items I’m trying to effect are in the Books for Sale menu item on this site in development: http://lightningliterary.com.

    /* change the background color of submenus *
    #access ul ul li a:hover {
    background-color:#1da209 !important ;
    overflow:none !important;
    }
    */prevents color from going outside the box
    #access ul ul a, #access ul ul ul a {
    width:auto !important;
    }

    Thanks if you can help.

    Website: lightningliterary.com

    #63888
    Zed
    Cryout Creations Team

    Please remove that CSS and use this instead:

    #access ul ul.sub-menu li a {
        background: #002F00;
    }

    If you like our creations, help us share by rating them on WordPress.org.
    Please read the available documentation and search the forums before posting.
    #63896
    kvalentk
    Power User

    Zed, works fine and is simpler, too. Thanks!

    Website: lightningliterary.com

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Changing Background Hover Color of Submenu Items’ is closed to new replies.