Jump to content

Add horizontal line between links on nav bar

Go to solution Solved by Beyondspace,

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

2 hours ago, Jiji said:

Hi y'all, 

I'd like to know how can I add horizontal divided lines like this between the links on my navigation bar.

Thank you so much for your help!

Screen Shot 2023-01-12 at 8.56.42 PM.jpeg

Try adding to Home > Design > Custom Css

.header-nav-list > .header-nav-item:after {
  content: '';
  width: 20px;
  height: 1px;
  display: block;
  background: red;
  margin-left: 1.2vw;
}
.header-nav-list > .header-nav-item {
  display: flex;
  align-items: center;
}
.header-nav-list > .header-nav-item:last-child:after {
  content: unset;
}

Support me by pressing 👍  or marking as solution if this useful for you

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • Solution

My testing

image.thumb.png.2d0f9d94ecad9f03921c47e97acd101f.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.