Shopify themes, liquid, logos, and UX
Hello all,
Hope you are well !
I'm trying to add a little space in between the submenus (not sure they are called like that) but basically, I would like to add some padding in between the different items to make it easier to read.
Thanks so much in advance for your help !
Karla
Solved! Go to the solution
This is an accepted solution.
Hi @Karla8
Try this one.
.mega-menu__list.page-width a {
padding: 5px 0;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @Karla8
Try this one.
.mega-menu__list.page-width a {
padding: 5px 0;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
You rock ! thanks a lot !
To add some space between the submenu items on your Shopify store, you’ll want to adjust the padding or margin in your theme’s CSS. Here’s how to do that:
Go to Shopify Admin:
Locate the CSS File:
Add the Custom CSS: Add this code at the bottom of the file:
/* Add space between submenu items */
.site-nav__dropdown li {
padding: 8px 0; /* Adjust value to control spacing */
}
Save and Preview:
Inspect the Element:
Add More Specificity:
nav .site-nav__dropdown li {
padding: 8px 0 !important;
}
I’m the developer of EasyEdits—a Shopify app that lets you customize your store’s design without touching code. It’s free to try, and you can keep your changes even if you don’t subscribe.
Let me know if you need any more help!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025