How To Keep The Divi Menu Module From Overlapping To Two Lines Tutorial by Pee-Aye Creative

How To Keep The Divi Menu Module From Overlapping To Two Lines

This Divi tutorial gives you several ways to make your Divi Menu module responsive and keep it from overlapping to two lines.

#1. Change The Divi Menu Module Breakpoint

Perhaps the most obvious way to fix the Divi Menu from overlapping to two lines is to simply change the responsive breakpoint. We have already covered that in a full written and video tutorial on How To Fix The Divi Menu Module Breakpoint, so be sure to check that out.

How To Change The Divi Menu Module Custom Responsive Breakpoint Tutorial by Pee Aye Creative

#2. Reduce The Menu Item Spacing

Another good way to keep the Divi Menu from overlapping to two lines to reduce the spacing on each menu item. There are several ways to do this, and we can do it on all devices or just at specific breakpoints.

Reduce Divi Menu Spacing In General

By default, the menu has 11px of padding on each side of the menu items. We can reduce that amount with CSS, and give the menu just a little more breathing room.

You can adjust the 6px number to meet your needs, but the following CSS snippet will get you started. Just copy and paste this snippet into the Divi>Theme Options>Custom CSS box.

/*reduce menu item spacing*/
.et_pb_menu .et-menu > li {
    padding-right: 6px;
    padding-left: 6px;
}

But hold on.

Reduce Divi Menu Spacing At Specific Breakpoints

To make this really effective, we would want to apply that smaller spacing only on certain device sizes.

Let’s say you want the spacing to apply on on laptops but not on desktop. You could start with this, and change the numbers as needed.

/*reduce menu item spacing at specific breakpoint*/
@media screen and (max-width: 1366px) {
.et_pb_menu .et-menu > li {
    padding-right: 6px;
    padding-left: 6px;
}
}

#3. Make Room For The Menu Module

Place Menu Module In Fullwidth Row
A bit more obvious, but just as good of a solution, is to increase the size of the column that the Divi Menu module is located in. You could even make the row fullwidth by adjusting the Row settings in the Sizing toggle to Width = 100% and Max Width = 100%.

Reduce Gutter Width to 1

Sometimes the gutter, which is the spacing between columns, is too wide. This extra room would help a lot, so you can try reducing the gutter width. You can find this in the Row settings under the Design tab.

Keep The Divi Menu Module From Overlapping To Two Lines

Change The Column Structure

Perhaps the most obvious, but sometimes you need to make more room for that menu. If you can’t find a column structure you like, just follow our tutorial on How To Resize Divi Column Widths. This will literally give you any column size you want! It’s a clever trick that even beginners can do with one line of CSS.

How To Keep The Divi Menu Module From Overlapping To Two Lines

Last updated Jan 29, 2022 @ 1:24 pm

Subscribe

Each month we send out a roundup email newsletter with the latest tutorials, product updates, helpful resources, and any other industry or personal news. Occasionally we send an extra separate email here and there if we just can’t wait! So that’s what you will get if you subscribe, and you can always unsubscribe at any time if you just can’t take it anymore :)

Blog Post Optin

Please share this post!

Nelson Lee Miller (aka The Divi Teacher)

Nelson is the owner of Pee-Aye Creative in the beautiful state of Pennsylvania. He loves helping small businesses, exploring outdoors, building websites with Divi, and teaching others.

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

3 Comments

  1. Met

    Hello nelson, thank you for the information..i have tryed the css codes, but on my site there are no effects..can you maybe see why its so ?

    http:/bau.lefox.de

    Thank you very much

    Reply

Submit a Comment

Your email address will not be published.

Recent Posts

0

Your Cart