Here you will get the custom code with proper placement so that you can add a vertical line in Squarespace, so stay tuned and keep reading.

On a Squarespace website, a vertical line CSS can be applied to divide up text and add visual interest. There are many options for doing this. Your requirements will determine the method you use.

Including vertical lines is a great approach while using the Squarespace Divider Block. Any divider, including animated and solid lines, can be added to this block. Add a Divider block to your page to add the horizontal line but you know Squarespace does not have a block for vertical line.

Add Vertical Line in Squarespace

How to Add a Vertical Line in Squarespace?

A great method to draw a perpendicular line is using HTML code. This approach is more complex, but it allows for more detailed designs. To use this method, code must be inserted into your page. You can style the upright line created by this code using CSS.

To make more intricate designs, you can employ extra HTML components. Elegant and tidy are vertical lines. These content blocks cannot be easily added to your website using the selection id. But don’t worry, we will show you how.

Pro Tip: Along with adding a vertical line, you should know how to change fonts in squaresace as well.

Steps To Create Vertical Line

Depending on your comfort and level with coding like how friendly you are with the custom HTML or CSS, a few workarounds can be applied. Select the one that you will treasure most valuable.

Step 1. Use Images To Make Vertical Lines (Secret Method)

This is the simplest method. To design an upright line image, use Illustrator, Picmonkey, or Canva. Make sure the image is downloaded with a transparent background.

You must use Canva for Work if you utilize Canva. Wherever you intend to place your vertical line, include an image content block. When happy with the outcome, upload your image and make any necessary adjustments with spacer blocks.

Step 2. Vertical Lines Can Be Made With Code.

Vertical Lines Can Be Made With Code

Wherever you want your vertical line to be, place a Code block. You should replica and paste the HTML code from under.


<div class="vertical-line"></div>

Add this code where you want to make a vertical line.

The position of our perpendicular line has now been determined. It’s time to design and build it at this point.

CSS Code

Now, to style the line, you can use this CSS code.

Go to Design > Custom CSS

/* Vertical Line */
.vertical-line {
  height: 50px; /* line height */
  width: 2px; /* line width */
  background: #a8a6a1; /*line colour*/
  margin-right: auto;
  margin-left: auto;

Now, If you want to exclude the Mobile device and want it to appear on your desktop and tablet or iPad device, Then use this code:

@media screen and (min-width: 768px) {
.vertical-line {
background: #000000;
width: 1px;
height: 200px;
margin: 0 auto;

I have explained the code in the simplest form just for your ease, all you have to do is copy this code.

You can amend the settings to get the anticipated color, width, and elevation that you like. Once you’re finished, save your modifications. Re-visit the website to see the vertical line. Whatever option you select, you can add vertical lines to it.

This is a fantastic method to add your flair to the default template and distinguish your website from the competitor. Custom CSS snippets and cutting-edge subscription-based services are both possible with plugins. You can look up these timeline plugins free online or by going to extension directories.

But, according to my personal experience working with minor codes can’t do any harm. You will always get to learn something new and adding code is the safest method because extra plugins can disturb your core web vitals (Loading speed of your site).

Pro Tip: Now you are able to do vertical line customization but do know how more users are going to visit your site? Read our 24 Clickable Headline Formulas that will increase your CTR while making users to click on your post whenever it is shown in search results.

How Do I Create a Horizontal Line?

How Do I Create a Horizontal Line?

There are various options for drawing horizontal lines. The tag can be used to produce a horizontal line. A horizontal line of the width of the page will be produced as a result of adding a divider.

Horizontal lines can also be made using a border. The tag is the most widely used method of horizontal line creation in HTML. It can signal a shift in focus or a gap in the narrative.

Another way to make a horizontal line in HTML is to add a border to an element. This can be through by accumulation of a CSS code called ‘border-top’ to an element. This will add a limit at the top or lowest of the element. It will create a horizontal timeline.

Both these methods can be used to create horizontal lines in HTML. The choice of which one to use will depend on your needs. To create a visual break line between sections, the best option is ‘tag.’ The CSS attributes ‘border-top’ and ‘border-bottom’ can be used to apply a border to any element.

How do I edit a line block in Squarespace?

  1. Log in to your Squarespace account and navigate to the page that contains the line block you want to edit.
  2. Click on the line block to select it.
  3. Hit the Edit option that is appearing in front of you on the top left corner of the block.
  4. Use the options in the editing panel that appears on the left side of the screen to make changes to the line block.
  5. You can adjust the settings like thickness, style, etc.
  6. You can also adjust the width and alignment of the line block by using the options in the “Size & Alignment” section.
  7. Now, save after you are done editing.
  8. To preview your changes, click the “Preview” button in the top-right corner of the editing panel.
  9. At the end hit the save button.

Note: The above steps are general, the options might change depending on the template and version of Squarespace that you are using.


Squarespace’s vertical lines may only sometimes produce the intended outcomes and can be difficult. You need to avoid ending up with a line that isn’t exactly straight or doesn’t correspond to your content. Take your time and exercise caution to draw a straight line.

You can simply add a vertical line using the HTML code and CSS code for styling it because I have experienced the code method and it works quite well. And for the horizontal linen, simply go with a divider or a border tag.

People Also Ask

How can I make text vertical?

When writing content for a website, you might occasionally like your text to be vertical. The HTML tag can be cast-off to achieve this. With the use of this tag, a vertical paragraph is automatically created.

transform: rotate(90deg);
transform: rotate(180deg);

How can I put a line separating sections?

To add a line between portions, it offers a variety of alternatives. The Design Mode panel’s line tool is available for use. You can also do it via HTML code.

Similar Posts