Jump to content

Make a horzontal and vertical line with HTML

Recommended Posts

Site URL: https://familybredpuppies.squarespace.com/config/design/custom-css



I am wanting to add a vertical and horizontal line (see red lines in screenshot below)


I tried for the vertical line using the HTML code block <div class="vl"></div>

and the CSS

.vl {
border-left: 2px solid #000000; 
  height: 150px; 
  position: absolute;
  left: 50%; 
  margin-left: -1px; 
  top: 0;

The problem with the vertical line if I don't have a spacer between the two photos, the right photo covers the vertical line, BUT the spacer cuts off the top of the vertical line, how can I avoid using the spacer? and what can I do for the vertical line?


Thank you! 

Screen Shot 2022-03-31 at 3.04.59 PM.png

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.