1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Menu Hover Background Colour

Discussion in 'Free Divi Community Forum' started by Tom Staple, May 30, 2023.

  1. Tom Staple

    Tom Staple Member

    Hi all. So I'm trying to get each menu item to have a background hover color. I can get it to underline each item on hover using the:
    .et-menu>li:hover>a:before {
    content: '';
    height: 3px;
    width: 100%;
    position: absolute;
    bottom: 12px;
    background: #000;
    }
    but I can't work out how to change it so the background of the menu item changes (main menu not sub menu)

    Any help would be amazing.
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade gallery carousel design for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Based on your code, it should be the below:

    #page-container .et-menu>li:hover>a{
    background:#333!important;
    }
     
  3. Tom Staple

    Tom Staple Member

    Thank you, thank you, thank you.
     
    1. PRO MEMBER PERKS Divi Ultimate Blog Plugin - Easily set awesome default design for your Divi single blog page:Learn More