Is there a way to adjust the width of the mega menu so it isn’t full page? I can’t seem to get it any smaller.
Topic summary
A user seeks to reduce the mega menu width on their Shopify store (loreandwhimsy.com) using the Horizon theme, as it currently spans the full page width.
Solution Provided:
- Add custom CSS to
base.cssfile targeting.mega-menu.section.section--full-width-margin.section--full-width - Set
max-width: 1200pxwith centered margins to constrain the menu width
Follow-up:
The user asks about controlling height as well. The helper provides updated CSS including:
min-height: 200pxandmax-height: 400pxfor height constraintsoverflow-y: autoto enable scrolling if content exceeds maximum height
The solution involves editing theme code directly through Shopify Admin. Screenshots were shared showing the current full-width mega menu layout. The issue appears resolved with the CSS customization approach.
Welcome to the Shopify Community! Please share your store URL and password (if it’s password-protected), so I can check and provide you with the exact solution.
Hi! URL is https://loreandwhimsy.com/
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset > base.css and paste this at the bottow of the file:
.mega-menu.section.section--full-width-margin.section--full-width {
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
Awesome, thank you! If I wanted to do the height, I could just add that there as well, like if I wanted a min-height?
- In your Shopify Admin go to online store > themes > actions > edit code
- Find Asset > base.css and paste this at the bottow of the file:
.mega-menu.section.section--full-width-margin.section--full-width {
max-width: 1200px;
margin: 0 auto;
width: 100%;
min-height: 200px;
max-height: 400px;
overflow-y: auto;
}
Kindly feel free to get back to me if you need any further assistance.
If helpful, please like and accept the solution. ![]()

