Beatriz Caraballo

View Original

Create vertical lines in Squarespace (7.0, 7.1 CE & 7.1 FE)

Today’s tutorial will be quick an painless, and it will help you create those nice vertical lines you keep seeing everywhere that can be used to guide the eye further down the page, or simply as decoration!

Ready? Let’s go!

See this content in the original post

To do this we have to use a bit of HTML and then style it through CSS.

For the HTML portion, we only need to create an empty div, wherever we want to place the line, and give it the class of our choosing.

I’m going to name mine .vertical-line.

See this content in the original post

Now for the fun part!

Let’s go into our Custom CSS window to add the styles.

We’ll begin by targeting the class we just created:

See this content in the original post

Next, we’ll give it a background color. I’ll be using black.

See this content in the original post

And now let’s set the dimensions of the line.

I’ll be making mine 3px thick and 60px tall.

See this content in the original post

We can finally see it!

Now, how about we center it?

See this content in the original post

And that’s it!! Here’s the final result:

You’re good to go my friend, you can now add vertical lines to your Squarespace site as much as you like by simply duplicating the HTML portion anywhere you want to display one!

Until next time,

B.


See this content in the original post