How to Add a Border to All Images on a Squarespace Website

Add a Border to All Images in Squarespace

This easy step-by-step tutorial will show you how to add a border to all images on a Squarespace Website using custom CSS.


If you only want to add a border to an image or a few images, but you don’t want a code that affects ALL the images on your website, I have a blog post that shows you how to add a border to an image block in Squarespace.

 
 

How to Add a Border to All Images on a Squarespace Website

To add a border to all the images on your Squarespace website, follows these steps. If it helps, watch me do it in the video above.

  1. In fluid engine, make sure your images are set to “fill” (pages that still use the classic editor, like blog pages, don’t have this option, but the custom CSS works just fine for these images)

  2. Go to pages> Website tools > Custom CSS

  3. Copy the code below this video (scroll down) and paste it here

  4. Change the hex code to match your brand color

  5. Change the padding around the image to whatever you like—right now it is set at five pixels. You can change it to 0 if you want the border to abut the image

  6. Change the border thickness to whatever you like—right now it’s set to 2 pixels

  7. Hit save.

So easy, right?

 
 
 
 
 

Add This Code to Custom CSS to Add a Border to All Images in Squarespace

 
 
/* Add border to all images */

img {
    border: 2px solid #000;
    padding: 5px; 
    box-sizing: border-box;
}
 
 
 
 

Your beautiful website won’t do you any good if no one sees it.

Design is fun, but your website needs an actual strategy to convert website visitors into paying customers.

To learn more about how to attract and engage your target audience to your Squarespace website, check out my blog posts on website strategy and blogging where I share lots of tips and strategies for attracting and engaging your target audience to your Squarespace website.

 
 

Was this helpful?

Are you going to use this code on your Squarespace website? Can you see the challenges it presents if it’s applied to all your images? Are you more likely to use this code or the code for a single image at a time? Share your thoughts 👇


 
 

This page contains affiliate links

 
 

My Insta

@jenxwebdesign

 

Like this post?

Pin It to Pinterest 👇

How to Add a Border to All Images on a Squarespace Website
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

Planning and Scheduling Blog Content for Business Growth

Next
Next

What is the Google Sandbox and How Do I Get Out of It