Eventide Posted March 7, 2022 Share Posted March 7, 2022 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
Beyondspace Posted March 8, 2022 Share Posted March 8, 2022 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 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Beyondspace Posted March 8, 2022 Share Posted March 8, 2022 My testing BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Eventide Posted March 8, 2022 Author Share Posted March 8, 2022 Thanks so much! Looks great on desktop but doesn't look good on mobile. What can I do to remove it for mobile view? Link to comment
tuanphan Posted March 10, 2022 Share Posted March 10, 2022 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment