Personalized checkout and custom promotions with Shopify Scripts
Hello there fellow friends! Hope you having a great day. As for myself, my day is not that great due to this bug that has been eating my for a few days. So basically, the DROP DOWN menu on my website is too big. There is a lot of black padding which I would like to remove:
This is how it looks now
This is how I want it to look.(this is an older version of the website)
https://strapped-airsoft.myshopify.com/?_ab=0&_fd=0&_sc=1 Here's the link. I would be very happy if someone could help me out a bit:)
Solved! Go to the solution
This is an accepted solution.
Here you go:
@media (min-width:768px) {
.mega-menu {
position:relative !important;
}
.mega-menu[open] .mega-menu__content {
width: 200px;
}
}
Kind regards,
Gabriel
Hi there,
The below CSS code should achieve what you are looking for:
@media (min-width:768px) {
.mega-menu {
position:relative;
}
.mega-menu[open] .mega-menu__content {
width: 200px;
}
}
Let me know if everything works as expected.
Cheers!
Gabriel
Thank you very very much for your quick help. It worked perfectly but now another problem arises unfortunately... You see, the drop down menu is not below the header navigation text it belongs to
:
I would like for it to be underneath the navigation text it belongs to:) I would really be very grateful if you can help me here too!
This is an accepted solution.
Here you go:
@media (min-width:768px) {
.mega-menu {
position:relative !important;
}
.mega-menu[open] .mega-menu__content {
width: 200px;
}
}
Kind regards,
Gabriel
Love you man. Lemme give u a kiss 😘
Glad to hear that! If this fixed your issue, please mark it as the solution.
Have a nice day!
My dropdown menu Got fixed but a new issue arises, unfortunately.
I have this same problem but in Studio theme. I tried this code and the box was correct but the menu items text in the dropdown menu turned vertical. Where should I insert this code? And does it work for Studio theme?
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