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.
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)
Go to pages> Website tools > Custom CSS
Copy the code below this video (scroll down) and paste it here
Change the hex code to match your brand color
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
Change the border thickness to whatever you likeβright now itβs set to 2 pixels
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?