Kel3
May 1, 2025, 11:20am
1
I would like to separate the menu (navigation) bar from the header so that they can be different colours like in the picture below. Is this possible?
I have tried a couple of code changes in the custom css box but they either change the alignment of the text in the drop down boxes or affect the mobile layout.
Can anyone help with the code required?
Thanks
Paste this code into “Custom CSS” setting of the Header section ( you need to select “logo position”: “top center” first):
.list-menu {
margin-left: calc(50% - 50vw);
width: 100vw;
background: rgba(100,0,0,0.2);
}
.header.header--top-center {
padding-bottom: 0;
}
Kel3
May 1, 2025, 12:05pm
3
Brilliant thanks Is their a way to reduce the width of the drop downs when you click on them as they are filling the screen.
Thanks
I changed margin-left to margin-center which did help the left side but it is still stretching all across the right side of the homepage.
Right, let’s use a different selector then – replace the code with this:
nav > .list-menu {
margin-left: calc(50% - 50vw);
width: 100vw;
background: rgba(100,0,0,0.2);
}
.header.header--top-center {
padding-bottom: 0;
}
Sorry, that test shop of mine did not have drop-downs
Kel3
May 1, 2025, 2:19pm
5
Perfect, thank you so much for your help!