Jump to content

CSS for creating columns in Navigation folder drop-down

Go to solution Solved by creedon,

Recommended Posts

  • Solution

Add the following to Design > Custom CSS.

.Header-inner--top .Header-nav-folder {

  column-gap : 1rem;
  display : grid;
  grid-template-columns : 1fr 1fr;
  
  }

This is for v7.0 using the Brine template family.

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
  • 1 year later...
7 hours ago, MistyPhotos said:

It is still in progress.  Not live yet.

Please post the URL for a page on your site where we can see your issue.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works.

Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

We can then take a look at your issue.

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
  • 1 month later...
On 9/22/2022 at 6:04 AM, MistyPhotos said:

Is there any way to keep the two columns to only one folder?

 

.Header-inner--top .Header-nav-item:first-child .Header-nav-folder {

  column-gap : 1rem;
  display : grid;
  grid-auto-flow : column;
  grid-template-columns : repeat( 2, 1fr );
  grid-template-rows : repeat( 15, 1fr );
  
  }

Let us know how it goes.

Edited by creedon

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
On 11/2/2022 at 3:25 PM, creedon said:

 

.Header-inner--top .Header-nav-item:first-child .Header-nav-folder {

  column-gap : 1rem;
  display : grid;
  grid-template-columns : 1fr 1fr;
  
  }

Let us know how it goes.

Thank you SO much!  A miracle! 😉  One more thing, is there a way to make the first column in the services+conditions drop down in alphabetical order moving to the second?  Does that make sense?  I feel like it doesn't flow well right now.  Any thoughts?  

Link to comment
8 hours ago, MistyPhotos said:

is there a way to make the first column in the services+conditions drop down in alphabetical order moving to the second?

I have updated my code post. You do have to manually maintain the number of rows.

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
  • 1 month later...
On 12/19/2022 at 7:22 AM, MistyPhotos said:

I have changed a few things and now trying to figure out how to change the code to only allow "specialized programs" to be two columns.  What do I need to change on the code to make this happen?  I don't want "fitness center" to be two columns.

.Header-inner--bottom .Header-nav-item:nth-child( 4 ) .Header-nav-folder {

  column-gap : 1rem;
  display : grid;
  grid-auto-flow : column;
  grid-template-columns : repeat( 2, 1fr );
  grid-template-rows : repeat( 11, 1fr );
  
  }

Each time you change the layout of the header the code will need to be updated.

Let us know how it goes.

Edited by creedon

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.