Hi,
I’m trying to edit the menu bar on my website so it acts like this menu bar below:

Essentially I’m looking to have a solid horizontal background colour, in this case black, that stretches horizontally all the way across the screen, and when the mouse cursor is hovered over a button it changes to a different solid colour.
Any help here would be greatly appreciated.
Thanks.
2 Likes
Hello @ljespec300
Please share your store URL and password (if it’s password-protected),
so that I can check and provide you with the exact solution.
I just sent an email with the info, subject line: “Re: How To Add Background Colour For Header Menu Buttons”
Thanks!
1 Like
Hello @ljespec300
- 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:
@media (min-width: 992px){
nav.header__inline-menu>.list-menu {
width: 100vw;
position: relative;
margin-left: calc(-50vw - 9px) !important;
left: 50%;
background: black;
margin-bottom: -12px;
}
nav.header__inline-menu>.list-menu summary {
color: white;
}
nav.header__inline-menu>.list-menu .list-menu__item {
color: white;
}
nav.header__inline-menu>.list-menu .list-menu__item:hover {
background: #fff684;
color: black;
}
}