Jump to content

How to insert vertical line without it affecting other elements

Recommended Posts

Site URL: https://marlin-gopher-jtch.squarespace.com/contact

Hi SS community,

I have two questions regarding a vertical line that I hope you can help with:

1. What is the code to run a vertical line down the full height of a section? 100% does not work. 

2. When I increase the line height, it shifts the text elements down with it. How can I set up this vertical line so that it does not affect the other elements? 

This is the code currently in place:

.vertical-line {
  position: relative;
  background: #000000;
  height: 300px;
  width: 1px;
  margin: 0-auto;


Much appreciated 🙂

Screenshot 2022-08-19 at 17.00.00.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.