Shopify themes, liquid, logos, and UX
I applied the code below to center my navigation menu. As you can see, it’s somewhat successful, but I just can’t get the navigation menu perfectly centered. Does anyone have a solution?
@media screen and (min-width: 500px){
.header--middle-left {
grid-template-columns: unset !important;
}
} .header__inline-menu {
display: flex; justify-content: center;
}
Solved! Go to the solution
This is an accepted solution.
The issue has been resolved! I adjusted the code to the following, and it works perfectly.
@media screen and (min-width: 500px){
.header--middle-left {
grid-template-columns: unset !important;
}
}
.header__inline-menu {
display: flex;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
Hey @tsswnkls
Share your store URL and password if enabled.
Best Regards,
Moeed
This is an accepted solution.
The issue has been resolved! I adjusted the code to the following, and it works perfectly.
@media screen and (min-width: 500px){
.header--middle-left {
grid-template-columns: unset !important;
}
}
.header__inline-menu {
display: flex;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
Okay great
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025