Solved

How can I extend my menu bar's colour to full screen length?

HeleBun
Excursionist
15 0 3

Hello,

I was trying to modify a bit my store's menu bar. I was able to change its background colour but I can't get it to take up the entire screen. I think the background colour is only shown below the navigation titles but I would like it to take up the entire length of the screen. The theme is "Sense". Here is the code I have used:

ul.list-menu.list-menu--inline {
    background-color: #F5EAF4;

Image of my menu: ejemplo web mi menu.PNG

Would it also be possible for the background of a title to be a different colour when it is selected? Example here:

ejemplo web.PNG

 

- SHOP LINK: helebun.com

- PASSWORD: shopifyquestion181

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
5938 1429 1759

This is an accepted solution.

Hi @HeleBun 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media screen and (min-width: 990px){
.header--top-center .header__inline-menu {
    justify-self: unset !important;
}
nav.header__inline-menu {
    max-width: 100%;
    display: flex;
}
ul.list-menu.list-menu--inline {
    flex-grow: 1;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1705784656269.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
5938 1429 1759

This is an accepted solution.

Hi @HeleBun 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media screen and (min-width: 990px){
.header--top-center .header__inline-menu {
    justify-self: unset !important;
}
nav.header__inline-menu {
    max-width: 100%;
    display: flex;
}
ul.list-menu.list-menu--inline {
    flex-grow: 1;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1705784656269.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


HeleBun
Excursionist
15 0 3

Thank you!! Now the menu bar looks perfect 😄