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?
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024