How can I change the style of my dropdown menu?

Topic summary

Goal: Redesign a Shopify header dropdown menu from a full-width red mega-menu to a compact, centered dropdown similar to a provided example.

Actions taken:

  • Custom CSS added in assets/styles.css to change the dropdown (.navigation__tier-2-container) to an absolute, centered popup under the parent item (top: 100%, left: 50%, transform: translateX(-50%), visibility/opacity transitions).
  • Additional CSS set max-width: 1200px and auto margins to better center/contain the submenu.

Current status/issues:

  • Alignment remains inconsistent: the “Over ons → Contact” submenu still appears far left with excess red background.
  • Desired refinements not yet implemented: single-column layout, uniform alignment, smaller font, and an image positioned to the right of the menu items.

Requests/next steps:

  • Guidance on fixing alignment for all submenu items, specifically the “Over ons → Contact” case.
  • Instructions on how to add an image to the dropdown (e.g., via CSS background or theme section settings) and adjust typography.

Notes:

  • Screenshots and code snippets are central to the discussion.
  • No final resolution yet; thread remains open with pending styling and image-integration questions.
Summarized with AI on December 19. AI used: gpt-5.

Hi,

My website is: https://utrecht-winkel.nl/

I would like to change my drop down menu to get rid of the excess red, page-width filling menu and would like to have a more subtle menu like the pic below.

Current menu:

Desired menu-style:

I’m not too sure which CSS code I should be changing and how.
Would anyone be able to assist me with this?
Thanks a lot in advance!

@WVU

Do you want change style for menu look like this?

If that, you can go to Admin → Online Store → Themes → Customize Code → assets/styles.css

and then add short code here at the bottom of that file:

@media (min-width: 768px) {
    .section-header .navigation .navigation__tier-2-container {
        position: absolute;
        z-index: 10;
        top: 100%;
        left: 50%;
        width: 100%;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
        transition: opacity .15s ease-in-out;
        text-align: left;
        max-width: max-content;
        transform: translateX(-50%);
    }
}

Hi Viekin,

Thanks a lot for your reply and offered solution!
That’s almost the desired result, however the menu items are not completely alligned with where the menu item is on the page, see:

Would you happen to know a fix for this as well? Thanks a lot again!
It’s not a necessity to have the menu items listed in 2 seperate columns, these may be one column as well should that make it easier possibly.

Kind regards,

Teun

@WVU

You can add more a short code here to same file above:

.section-header .navigation .navigation__tier-2-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

This is result:

Thanks!

Unfortunately, menu item “Over ons” → “Contact” is still all the way over to the left with a lot of excess red bit around it.

How do I add a picture to the menu item?
I’d love to have it look like this:

1 column, all equally alligned, picture to the right of the menu items and fonts a little bit reduced.

Sorry for the hassle, and I greatly appreciate your support!