Jump to content

Navigation bar appearing over 2 lines on desktop.

Go to solution Solved by creedon,

Recommended Posts

Hello,

 

I'm having trouble getting the navigation bar on this website to appear correctly. On desktop the the navigation bar is running over 2 lines. I used the below code from another thread which resolved the issue on desktop but causes a problem with the mobile layout. Any advice on how to get this working well on desktop and mobile would be greatly appreciated.

Website password is: crawford

 

.header-title-nav-wrapper {
  flex: 1 0 80% !important;
  flex-wrap: nowrap !important;
}
.header-nav {
  width: 100% !important;
  flex: 1 1 100% !important;
}
Link to comment
  • Solution

You just need to restrict the ruleset to the desktop version of the navigation.

// uses LESS syntax

.header-display-desktop {

  .header-title-nav-wrapper {
  
    flex : 1 0 80%;
    flex-wrap : nowrap;
    
    }
    
  .header-nav {
  
    flex : 1 1 100%;
    width : 100%;
    
    }
    
  }

This is for v7.1.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

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.