Jump to content

Changing the background colour on the nav.header.list

Recommended Posts

Posted

Is it possible to make the background behind the navigation text ONLY go all the way to the edge like this screenshot attached? I can get the grey colour behind the text using some code but it doesn't go all the way to the edge:

nav.header-nav-list { 
    -ms-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
background:#566175!important; 
}
div.header-nav-item--active>a {
    color: #e95d43 !important;
}
.header-nav-item a:hover {
    color: #e95d43 !important;
}
.header-menu-nav-item a {
    font-size: 14px;
}
/* Nav black */
nav.header-nav-list>div {
    background-color: #566175;
    padding-right: 4%;
    padding-left: 4%;
}

Screen Shot 2023-06-25 at 3.14.46 pm.png

  • Replies 1
  • Views 343
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.