Jump to content

How to Have Nav Items Be on One Line

Recommended Posts

  • Replies 5
  • Views 178
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Just simply add this code into

.header-title-nav-wrapper {
    width: 90%;
    flex-grow: 1;
    flex-shrink: 0;
}

.header-layout-nav-center .header-nav {
    flex: 1 1 auto; /* Allows the nav to take up available space */
    width: auto; /* Removes the need for fixed 100% width */
}

 

Posted
On 11/30/2024 at 1:35 AM, Squareko said:

Just simply add this code into

.header-title-nav-wrapper {
    width: 90%;
    flex-grow: 1;
    flex-shrink: 0;
}

.header-layout-nav-center .header-nav {
    flex: 1 1 auto; /* Allows the nav to take up available space */
    width: auto; /* Removes the need for fixed 100% width */
}

 

This slightly worked, is there a way to make it take up even more space?

Posted
On 12/2/2024 at 1:19 AM, andrewmarshall said:

This slightly worked, is there a way to make it take up even more space?

You can use this

div.header-title-nav-wrapper {
    flex: 1 0 90% !important;
}

div.header-title {
    text-align: left !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.