Hey all!
I would like all the content in the dropdown menu on phone view to be centered horizontally, including the footer. How do I do that?
Website - maisonmagdalena.com
Password - MaisonMagdalena.222
Thank you in advance ![]()
A user seeks to center all content in the mobile dropdown menu (including footer) for their Shopify Dawn theme store.
Solutions Provided:
Three community members offered CSS-based fixes, all involving:
</body> tagdisplay: flex and justify-content: center to menu drawer elementsCurrent Status:
The original poster confirmed one solution worked initially, but reported a follow-up issue: some elements aren’t perfectly centered, creating a visually inconsistent appearance. They’re seeking guidance on why this occurs and how to fix the alignment problem.
The discussion remains open with the centering partially resolved but requiring refinement.
Hey all!
I would like all the content in the dropdown menu on phone view to be centered horizontally, including the footer. How do I do that?
Website - maisonmagdalena.com
Password - MaisonMagdalena.222
Thank you in advance ![]()
Hey @MagdalenaBB
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
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
Add this css in your edit code > base.css file
@media screen and (max-width:990px){
ul.menu-drawer__menu.has-submenu.list-menu li {
display: flex;
justify-content: center;
}
}
@media screen and (max-width:990px) and (min-width:750px){
ul.menu-drawer__menu.has-submenu.list-menu{
display:flex;
flex-wrap:wrap;
justify-content:center;
}
}
Hello @MagdalenaBB
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hey! It worked thank you. However, after second inspection it seems some of the elements are not perfectly centered, making it all look strange. Any idea why that is and how to fix it?