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 Increase Menu Item Width

Discussion in 'Free Divi Community Forum' started by Pranab, Jan 4, 2020.

  1. Pranab

    Pranab New Member

    Hi!
    Few of the menu items are a bit long and they are wrapping up in 2nd line.
    I tried with the following CSS code but though it is increasing the drop down menu width but the items are still coming in 2 lines. Please help.

    CSS Code:
    .nav li ul {
    width: 280px !important;
    }

    .nav li li ul {
    left: 280px !important;
    }

    #top-menu li li a {
    width: 240px;
    }
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade before / after image slider for your Divi site without using any plugins:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    Your CSS should work just fine. Perhaps you need to set a bigger width.

    If still not working, kindly share your URL.
     
  3. Pranab

    Pranab New Member

    In the above code, I have used 280px but since its not solving the issue I increased upto 400 also which increased the menu width however the menu items width are still not increasing and as such coming to two lines.

    Currently am trying with the Global Header. Here is a link to one of my page.
    http://www.unacco.in/about-us/
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade before / after image slider for your Divi site without using any plugins:View Demo
  4. Divi.Help

    Divi.Help Administrator
    Staff Member

    Couldn't view your site. It's under maintenance page.
     
  5. Pranab

    Pranab New Member

    Ohh!
    I am using Divi Coming soon plugin. However I got the following css code which resolved the issue:

    @media only screen and (min-width: 981px) {
    .sub-menu, .sub-menu li a {width: 300px !important;}
    }


    Anyway Thanks for your prompt support.
     
    help4two likes this.
    1. PRO MEMBER PERKS Divi Ultimate Child Theme - Tons of premade layouts & section designs + functionalities for your Divi site:Learn More
  6. hasan

    hasan New Member

    This was really very helpfull