Hi!
Can anyone share some code on how to align the sub-menu list below its corresponding menu on Dawn Theme? As for this image below, it should be under the “Ring” menu (the same goes for the others).
Thank you in advance for your help.
A user is seeking CSS code to properly align mega menu dropdown lists in the Dawn theme. Currently, the dropdown menus appear centered rather than positioned directly below their corresponding parent menu tabs.
Specific Issue:
Attempted Solutions:
base.css with positioning properties (position: absolute; top: 100%; left: 0;) for .site-nav__dropdown - this did not resolve the issue#Details-HeaderMenu-2 ul > li with width: 100% !important - also unsuccessful as it centered rather than left-aligned the dropdownsCurrent Status:
Hi!
Can anyone share some code on how to align the sub-menu list below its corresponding menu on Dawn Theme? As for this image below, it should be under the “Ring” menu (the same goes for the others).
Thank you in advance for your help.
Hello There,
Please share your store URL and password.
So that I will check and let you know the exact solution here.
Hello @yzzadigital ,
You can try to follow these steps:
Go to Online Store → Themes → Actions → Edit code
Go to Assets folder → base.css file
Add this following code at the bottom of page
.site-nav__dropdown {
position: absolute;
top: 100%;
left: 0;
}
Save and preview
Hope this can help.
Transcy
https://9qifmasjg9x9awu6-65461747938.shopifypreview.com
Thank you in advance.
It didn’t work. Thank you for the help though. ![]()
@yzzadigital
Hello,
Add This CSS Go To Online Store > Select Theme > Edit Theme > Assets > base.css
#Details-HeaderMenu-2 ul > li {
width: 100% !important;
}
Like This
It should be aligned below its specific menu tab not centered. For my example, it’s under the “Ring” menu tab and the same goes for other menu lists. ![]()