I want to make my header menu have less empty padding, and I couldn’t find a working solution for top center position.
I want to cut off the parts in red, to make my menu slimmer.
https://r20561-af.myshopify.com/
Password: theaba
A user seeks to reduce excessive vertical padding in their top-center positioned header menu to create a slimmer appearance.
Problem: The header contains unwanted empty space above and below the menu items.
Solutions Provided:
Two respondents offered CSS-based fixes:
base.css setting padding: 0px !important; on the header element to completely remove paddingpadding: 0 32px !important; to maintain horizontal padding while removing vertical spacingImplementation: Both solutions require editing the theme code by navigating to Online Store → Themes → Actions → Edit Code → base.css and adding the provided CSS snippet at the end of the file.
Both respondents included screenshots demonstrating the visual results of their proposed fixes. The discussion appears resolved with working solutions provided.
I want to make my header menu have less empty padding, and I couldn’t find a working solution for top center position.
I want to cut off the parts in red, to make my menu slimmer.
https://r20561-af.myshopify.com/
Password: theaba
Hello @Sicilia2025
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
.header.header--top-center.header--mobile-center.page-width.header--has-menu.header--has-account {
padding: 0px !important;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
Hi Sicilia2025
header.header.header--top-center.header--mobile-center.page-width.header--has-menu.header--has-account {
padding: 0 32px !important;
}
Result:
Best,
Esther