Website Building » Squarespace » How Do I Change the Spacing Between Images in Squarespace?

How Do I Change the Spacing Between Images in Squarespace?

Last updated on December 27, 2022 @ 5:10 pm

There are a few ways to change the spacing between images in Squarespace. One way is to use the built-in spacing options in the Image Block.

To do this, open the Image Block settings and select the Spacing tab. Here, you can choose from a few different spacing presets, or you can enter custom spacing values.

Another way to change the spacing between images is to use CSS. You can add CSS to your site in a few different ways, but we recommend using the Code Injection tool. To do this, go to Settings > Advanced > Code Injection and enter your CSS code in the Header box.

If you want to change the spacing between all of the images on your site, you can use this CSS code:

PRO TIP: Images in Squarespace can be spaced apart using the built in spacing options. However, these options may not work perfectly for all images. If you are having trouble spacing your images correctly, you may need to use a custom CSS code.

img {
   padding: 10px;
}

This code will add 10px of space around all of your images. You can change the 10px to any value you want, just make sure that it's in pixels.

If you only want to change the spacing between specific images, you'll need to add a class or ID to those images and then use that class or ID in your CSS code. For example, let's say we have two images with the classes "image-1" and "image-2". We could add this CSS code to change the spacing between those two images:

image-1, 
.image-2 {
   padding: 10px;
}

In conclusion, there are a few different ways that you can change the spacing between images in Squarespace. You can use the built-in options in the Image Block, or you can use CSS code.

If you want to change the spacing for all of your images, you can use this img {padding: 10px;} code. But if you only want to Target specific images, you'll need to add a class or ID to those images and then use that class or ID in your CSS code.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.