Jump to content

Vertical line in blog post

Recommended Posts

Site URL: https://www.relativelygenealogy.com/blog/Blog%20Post%20Title%20One-e8l8p

I'm just setting up what I hope to be my blog post template. I've set up a side bar and would like to create a vertical line that separates the article body from the sidebar. Is there any way to set one up that starts from the top of the photo to the bottom of the article body?

I was able to set up a vertical line but only with an exact measurement like 300px, but not one that will change with the size of the article depending on how much text is in it. Any help would be appreciated.

https://www.relativelygenealogy.com/blog/Blog Post Title One-e8l8p

Link to comment
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

19 minutes ago, Eventide said:

Site URL: https://www.relativelygenealogy.com/blog/Blog%20Post%20Title%20One-e8l8p

I'm just setting up what I hope to be my blog post template. I've set up a side bar and would like to create a vertical line that separates the article body from the sidebar. Is there any way to set one up that starts from the top of the photo to the bottom of the article body?

I was able to set up a vertical line but only with an exact measurement like 300px, but not one that will change with the size of the article depending on how much text is in it. Any help would be appreciated.

https://www.relativelygenealogy.com/blog/Blog Post Title One-e8l8p

Try adding to Home > Design > Custom Css

.blog-item-content .sqs-layout > .row > .col:first-child {
  position: relative;
}
.blog-item-content .sqs-layout > .row > .col:first-child:after {
  content:'';
  display: block;
  width: 1px;
  height: 100%;
  background: rgb(142,141,141);
  position: absolute;
  top: 0;
  right:30px;
}
#block-yui_3_17_2_1_1646410531779_16521,  #block-yui_3_17_2_1_1646695868402_5242 {
  display: none;
}

Let me know how it works on your site

Support me by pressing 👍 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

My testing

image.thumb.png.26325b826b49fab623f548c7ec6e0067.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
On 3/8/2022 at 8:03 AM, Eventide said:

Thanks so much! Looks great on desktop but doesn't look good on mobile. What can I do to remove it for mobile view?

Change above code to this

@media screen and (min-width:992px) {
.blog-item-content .sqs-layout > .row > .col:first-child {
  position: relative;
}
.blog-item-content .sqs-layout > .row > .col:first-child:after {
  content:'';
  display: block;
  width: 1px;
  height: 100%;
  background: rgb(142,141,141);
  position: absolute;
  top: 0;
  right:30px;
}
#block-yui_3_17_2_1_1646410531779_16521,  #block-yui_3_17_2_1_1646695868402_5242 {
  display: none;
}
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.