All things Shopify and commerce
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
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
Solved! Go to the solution
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
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
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
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?
Try this one.
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!
This worked perfectly, thank you!
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