All things Shopify and commerce
Hello, I am trying to make the items in the dropdown menus take all the space available so each option doesn't take two lines. Is there anyway to reduce the margins to near 0 so that the words are at the left of the dropdown menu and can go all the way to the right?
my URL is jajamoon.com and the password is: skawts
Thank you!
-------------
If it helps, I currently have the current CSS custom to make the dropdown look how it is now (took it from other discussions):
ul.list-menu.list-menu--inline span {
font-size: 15px;
}
.header {
display: flex !important;
justify-content: space-between;
align-items: center;
}
.mega-menu {
position: relative !important;
}
.mega-menu[open] .mega-menu__content {
width: relative;
}
.header__submenu .header__menu-item {
justify-content: flex-end;
text-align: left;
}
Hi @nahuel_123
Try this one.
ul.mega-menu__list.page-width.mega-menu__list--condensed {
padding: 0 12px !important;
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thank you!
That worked. The only issue now is that there is quite a space at the top and bottom of the dropdown, is there a way to reduce it?
Add this one then.
Same instruction.
.mega-menu__content {
padding: 10px 0;
}
And Save.
Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
That didn't seem to work, it still looks like before to me. I also tried adding the "!important" but didn't work either.
Im bnot sure what are you trying to change here, as you said you like to remove the top and bottom space.
Please, compare my ss before and after.
This is only on the sides.
And currently what you have.
I hope you already see the difference.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi, the code provided before didn't solve it but after playing around a bit I was able to reduce the margins by adding this line in bold to the code you first shared, in case it helps others:
ul.mega-menu__list.page-width.mega-menu__list--condensed {
padding: 0 12px !important;
margin: -20px 0 !important;
}
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024