Jump to content

Vertical line between navigation titles

Recommended Posts

3 hours ago, Slotte said:

Site URL: https://www.philipslotte.se/

Hello,
How can I add a vertical line between my navigation titles?

I've googled and tried different codes, but not been able to find a solution.

I hope that anyone of you can help me! Thanks in advance.

My website: https://www.philipslotte.se/

Is it the result you want to achieve?

image.thumb.png.d61324a6da8252e575f118fb455499bf.png

Try adding to Home > Design > Custom Css

.Header-nav-item {
      padding: 0.618em 0.75em !important;
  margin: 0 !important;
  position: relative;
}


.Header-nav-item:after {
  content: '';
  display: block;
  width: 0.5px;
  height: 15px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
}

.Header-nav-item:last-child:after {
  content: none;
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

 

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, Lightbox Studio plugin
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
4 hours ago, bangank36 said:

Is it the result you want to achieve?

image.thumb.png.d61324a6da8252e575f118fb455499bf.png

Try adding to Home > Design > Custom Css

.Header-nav-item {
      padding: 0.618em 0.75em !important;
  margin: 0 !important;
  position: relative;
}


.Header-nav-item:after {
  content: '';
  display: block;
  width: 0.5px;
  height: 15px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
}

.Header-nav-item:last-child:after {
  content: none;
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

 

Yes, thank you so much!! 🙂

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.