How to make dropdown menu smaller in dawn theme?

Solved

How to make dropdown menu smaller in dawn theme?

YonatanBaratz
Tourist
8 0 2

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:

 

Screenshot (10).png

This is how it looks now

 

Screenshot (11).png

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:)

 

Accepted Solution (1)
GabrielS
Shopify Partner
486 107 117

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

 

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.

View solution in original post

Replies 7 (7)

GabrielS
Shopify Partner
486 107 117

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;
}
}

 

GabrielS_0-1664551234747.png

 

Let me know if everything works as expected.

 

 

Cheers!

Gabriel

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.
YonatanBaratz
Tourist
8 0 2

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

:

Screenshot (13).png

Screenshot (12).png

 

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!

GabrielS
Shopify Partner
486 107 117

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

 

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.
YonatanBaratz
Tourist
8 0 2

Love you man. Lemme give u a kiss 😘

GabrielS
Shopify Partner
486 107 117

Glad to hear that! If this fixed your issue, please mark it as the solution.

 

Have a nice day!

Gabriel Soare | Web Developer
Are you looking to customize your Shopify or to fix a website bug?
You can reach me through my website gabrielsoare.com, DM, or email hello@gabrielsoare.com.
Have I helped you? Like my post.
AbubakrNawaz
Shopify Partner
1 0 0

AbubakrNawaz_0-1701690000656.png

My dropdown menu Got fixed but a new issue arises, unfortunately.

Mirandaelanor
Visitor
2 0 0

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?