Center mega menu on Dawn theme

Hi there,

We have a mega menu on our header and I can’t seem to center it and justify the contents. I have tried multiple ways and added code, etc. but nothing seems to be working.

The site is levitasretail.com, see below example:

Thanks in advance!

Natasha

Hey @NatashaAugustyn

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Good day Moeed,

Thank you so much, that worked!

Is there any way to stretch the content that it is spread evenly in that block so that all items touch the sides?

Hi @NatashaAugustyn

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
header ul.list-menu.list-menu--inline {
    display: flex !important;
    justify-content: space-between !important;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Hi NatashaAugustyn

You can try to follow this step
Step 1: Go to Edit code
Step 2: Find file base.css and add this code at the end of the file

ul.list-menu.list-menu--inline {
    display: flex !important;
    justify-content: space-between !important;
}

Result:

Best,

Liz

This worked perfectly, thank you!