How to Add a Border to an Image Block in Squarespace

At the time I write this blog post, there’s not a way to add a border to an image block using native functions in Squarespace.

In this tutorial, I'm going to show you how to add a border to an image block in Squarespace using a bit of CSS.

Before I show you how to do this cool design-y thing, remember that it's your website's job to attract and engage your target audience, and to learn more about how to do that, check out my blog posts where I share lots of tips and strategies for attracting and engaging your target audience to your Squarespace website.

 
How to add a border to an image block in Squarespace
 
 

How to Add a Border to an Image Block in Squarespace

Adding a border to an image block in Squarespace is super easy. Watch me do it in the video above or follow the easy step-by-step tutorial here.


Here’s how you do it:

  1. Head on over to pages, scroll all the way down to website tools and select ‘Custom CSS’

  2. Then copy and paste the code below this video right here (scroll down for the code) 

  3. For this next step, you're going to need the Squarespace ID finder Chrome extension

  4. Once you have that installed, select it, and then find the block ID associated with the image that you want to add the border to

  5.  Select the block ID and you'll see how it automatically copies to the clipboard

  6. Now go back to your code and highlight where it says BLOCK ID GOES HERE and paste the code you just copied

  7. Change the thickness of the border to whatever you want it to be

  8. Change the color of the border to whatever you want it to be by changing the hex code

 
 

Heres the Code Snippet

 
//add ___ border to images on ___ page//

BLOCK ID GOES HERE{
	border: 2px solid #000;
}
 
 

Where to Put Things in the Code Snippet

 

Before

How to fill in the code snippet

After

After code snippet is filled in

Keep reading, there’s more ↓

 
 

How to Apply a Border to More Than One Image

Let's say you want to apply this border  to more than one image.

Easy peasy! Here’s how you do it:

  1. Locate the block ID of the additional image(s) you want to add the border to and select it using the Squarespace ID finder Chrome extenstion

  2. Go back over to the code and after the last number of the first block ID add a comma and then paste the code you just copied

 
Adding more images to code snippet
 

There’s one more important step…keep reading ↓

 
 

Be Sure ‘Fill’ is Selected in the Design Tab

You want to make sure that ‘Fill’ is selected in the design tab of your image block editor.

If ‘Fit’ is selected, you’ll notice some space between the image and the border because the border's going to go around the entire block and the image is just going to fit inside the block, it's not going to fill it. 

 
Select 'Fill' in the Design Tab

IF you don’t select ‘Fill’
it could look like this…weird

If you don't select 'Fill' it could look like this
 

Was this helpful?

Are you going to try this? Let me know how it goes in the comments 👇


 
 

This page contains affiliate links

 
 

My Insta

@jenxwebdesign

 

Like this post?

Pin It to Pinterest 👇

How to Add a Border to an Image Block in Squarespace
Jennifer Barden

This article was written by Jennifer Barden, founder of Jen-X Website Design and Strategy.

Many Squarespacers feel defeated when their websites don’t attract and engage visitors.

In my blog, I share my secrets for effective Squarespace website design and strategy so that DIYers and Squarespace Website Designers can learn tips for building Squarespace websites that attract and engage the right visitors.

https://jenxwebdesign.com
Previous
Previous

3 Blog Strategies to Show Authority and Get More Customers

Next
Next

How to Blog to Nurture Your Audience and Grow Your Business