Jump to content

Help with code to prevent Nav jumping to second line / collapsing onto logo

Recommended Posts

I recently found some coding to split our navigation on either side of the logo - however, whenever the site is displayed on a smaller computer now or a smaller window - the navigation collapses too close to the logo, and also carries over to the second line. Is there any way to make this so the navigation spacing is reduced or the edge limits as to how wide the navigation can go before jumping to a second line can be widened? Any help would be greatly appreciated! Attaching photo's of the issue. Thank you!

 

Here's the current code i was using

/*Make split navigation*/
.header-nav {
    position: absolute;
    top: 60px;
    bottom: 0;
    margin-top: 1!important;
    margin-left: 0px!important;
}

.header-nav-item:nth-of-type(3) {
    margin-right: 440px!important;
}

.header-title-logo a {
    z-index: 1000;
    position: relative;
}

/* remove page width limit */
#page .content-wrapper {
    max-width: 100% !important;
}

 

Screenshot 2022-11-29 at 12.59.21 PM.png

Screenshot 2022-11-29 at 12.59.14 PM.png

Link to comment
  • Replies 1
  • Views 225
  • Created
  • Last Reply

Top Posters In This Topic

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.