Subscribe On YouTube

Join other subscribers and enjoy other Divi video tutorials!

How To Center The Divi Dropdown Submenu

Nelson Miller Profile Orange
This quick Divi tutorial will show you how to center the Divi dropdown submenu using either the Menu module or the default Divi menu.

▶️ Please watch the video above to get all the exciting details! 👆

Center The Menu Module Submenu Dropdown

As we know, we are the only Divi tutorial site to have tons of Divi Menu module tutorials. We love it, and look how easy it is to center the dropdown submenu. Just place the following CSS snippet inside the Divi Menu Module>Advanced Tab>Custom CSS>Dropdown Menu Container.

left: 50%!important;
right: auto!important;
text-align: center!important;
transform: translate(-50%, 0)!important;

Center The Default Menu Dropdown Submenu

If you are still using the default Divi menu (not using the Theme Builder) then you are in luck because I decided to include you here today. Most of our tutorials are forward thinking and only for the new menu module, but we were feeling generous! For this one, just copy and paste the follow CSS snippet in your Divi>Theme Options>Custom CSS box.

/*center the default Divi menu submenu*/

#main-header .nav li ul {
	left: 50%!important;
	right: auto!important;
	text-align: center!important;
	transform: translate(-50%, 0)!important;
}

Add A Point On Top

At this point you should totally add a point to the top center. You can check out our other tutorion on How To Add  A Point On Top Of The Divi Submenu. This one will work for both menu types!

How To Add A Point On Top of a Divi Menu Submenu Dropdown Tutorial by Pee-Aye Creative

Customize Anything!

I highly recommend taking this further with more customization. You can check out our very thorough complete guide on How To Style The Divi Submenu for more ideas and instructions.

How To Style and Customize The Divi Menu Module Dropdown Submenu Tutorial by Pee-Aye Creative
Last updated January 16, 2026

Subscribe For More Divi News & Resources!

At the start of each month, we send out a recap newsletter from the month before with family news, Divi news, our latest tutorials, product news, and a look behind the scenes. Occasionally, if the news is too exciting to wait, we will send out another email separate from the monthly newsletter. That’s what you get when you subscribe, and of course, you can unsubscribe if you are no longer interested!

Blog Post Optin
Divi Logo (2)

Shop Our Divi Products

Plugins • Courses • Templates

Visit The Shop

Featured Products

Asset 4

New! Trail Guides

Follow a series of blog posts carefully arranged around a specific topic or goal! Keep track of your progress by marking posts completed, just like a free course!

View Trail Guides

Divi Tutorials On YouTube

Our videos have views! Join subscribers and enjoy over video tutorials!

Visit Our Channel

Leave A Response!

By commenting you agree to our Blog & YouTube Comments Policy

12 Comments

Comments By Members

These comments are highlighted because they were posted by fans who have a membership on this site.

  1. Sean Callanan <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

    I’m trying this on a menu that is right aligned. Since the text on the main menu is right aligned, the submenu links are also right-aligned. I’d like to center them, but the CSS above is not changing them; they are still right aligned. Any ideas?

    Reply

Comments By Others

  1. Sam

    Another great turotial! Is it possible to have this right-alighned? Using a full-width menu with the menu items right aligned, any sub-menu items appear off the screen / add unwanted horizontal scroll.

    Reply
    • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

      Hi Sam!

      Please add text-align: right; inplace of text-align: center; in the code.

      Reply
  2. Theresa

    Hi how does this work for sub sub menu it overlaps.

    Reply
      • Chris

        Hey Nelson,

        I know this was a long time ago, but it would be nice to see a video on this fix. 🙂 Or even the CSS code would be great too.

        Keep up all the great work. I’m a fan of all you do with Divi…

        Chris

      • Hemant Gaba <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

        Hi Victor!

        I’m not able to see the link in the comment. Can you please share it again?

      • Victor <span class="comment-author-role-label"><a href="https://www.peeayecreative.com/product/divi-adventure-club/" class="comment-author-role-link" rel="external nofollow" target="_blank">Divi Adventure Club Member</a></span>

        I have the same issue. If the submenu has a submenu, it overlaps the first submenu. Example:

        1. First level
        2. Second level
        3. Third level

        In this case, the third level overlaps the second level. Link is in the comments if you want to see an example.

      • Theresa

        Hi I removed the css as it was the sub menu of the sub ul li ul li
        It brought the sub sub menu overlapping the sub menu.

Submit a Comment

Your email address will not be published. Required fields are marked *

Recent Posts

Last updated January 16, 2026
Shopping cart0
There are no products in the cart!
You may be interested in…
Divi Builder Experience Helper Plugin by Pee-Aye Creative
From: $36.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Divi Assistant
From: $69.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Divi Carousel Maker Plugin by Pee Aye Creative
From: $29.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Logo for D Beginner Course with graduation cap
From: $47.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

divi events calendar
From: $54.00 / year

Select options This product has multiple variants. The options may be chosen on the product page

Continue shopping
0