We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Center mega menu on Dawn theme

Solved

Center mega menu on Dawn theme

NatashaAugustyn
Tourist
3 0 2

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:

NatashaAugustyn_0-1738932834655.png

 

Thanks in advance!

 

Natasha

Accepted Solution (1)

Moeed
Shopify Partner
7764 2082 2568

This is an accepted solution.

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 </body> tag

<style>
nav.header__inline-menu {
    text-align: -webkit-center !important;
}
</style>

RESULT

Moeed_0-1738933679409.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
7764 2082 2568

This is an accepted solution.

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 </body> tag

<style>
nav.header__inline-menu {
    text-align: -webkit-center !important;
}
</style>

RESULT

Moeed_0-1738933679409.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


NatashaAugustyn
Tourist
3 0 2

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?

Made4uo-Ribe
Shopify Partner
10211 2427 3079

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;
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1738941979496.png

     

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
NatashaAugustyn
Tourist
3 0 2

This worked perfectly, thank you!

LizHoang
Shopify Partner
1251 159 195

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: 

LizHoang_0-1738945358374.png

 

Best,

Liz

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program