Jump to content

How to make nav bar remain in one line on various screens?

Recommended Posts

  • Replies 1
  • Views 195
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 7/30/2021 at 8:48 PM, Momo222 said:

Site URL: https://parrot-apricot-rfb9.squarespace.com/

Hello everyone, 

Is there a code that would make my nav bar remain the same on all screen sizes (exc. mobile). I would like to have it all in one line, no matter the size of desktop. Atm, links fall into 2 rows when resizing, while ideally I'd like it all in one.

Is it possible? Thanks so much for your help! x

Add to Design > Custom CSS

/* nav one line */
nav.header-nav-list {
    white-space: nowrap !important;
    width: 100% !important;
}
.header-title-nav-wrapper {
    flex: 100% !important;
}
.header-display-desktop {
    flex-direction: column;
}

 

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!)

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.