Website Building » Squarespace » How Do I Change the Padding on Squarespace?

How Do I Change the Padding on Squarespace?

Last updated on October 1, 2022 @ 3:31 am

Padding is the space between the content of an element and its border. It’s a common technique used to create white space on web pages and make content more readable. You can add padding to an element using the CSS padding property.

In this article, we’ll show you how to change the padding on Squarespace pages using CSS.

CSS is a code language that tells web browsers how to style HTML elements. Squarespace uses a modified version of CSS called SCSS. You can learn more about SCSS in our help center.

To change the padding on Squarespace pages, you’ll need to use a code block. Code blocks are Squarespace’s way of allowing you to add custom code to your site. To learn more about code blocks, check out our help center article.

Once you’ve added a code block to your page, you can use the following CSS code to change the padding:

/* Change the padding on all sides */
padding: 20px;

/* Change the top and bottom padding */
padding-top: 20px;
padding-bottom: 20px;

PRO TIP: If you are not familiar with Squarespace or HTML/CSS, we recommend that you seek help from a web developer before attempting to change the padding on Squarespace. Incorrectly changing the padding can result in your website looking broken or unprofessional.

/* Change the left and right padding */
padding-left: 20px;
padding-right: 20px;
In order to change the padding on just one side of an element, you can use the following CSS code:

/* Change the top padding */
padding-top: 20px; /* Change the right padding */ padding-right: 20px; /* Change the bottom padding */ padding-bottom: 20px; /* Change the left padding */ padding-left: 20px;You can also use negative values for padding if you want to decrease the amount of space around an element. Just keep in mind that using negative values may cause your content to overlap with other elements on your page.

Once you’ve added your CSS code, be sure to click Save & Exit in the upper right corner of the code block editor. Your changes will now be live on your site!

Adding custom CSS is a great way to make small changes to your Squarespace site. If you’re looking for more ways to customize your site, be sure to check out our list of essential Squarespace tips and tricks.

How Do I Change The Padding On Squarespace? You can change the amount of space between the content on your Squarespace pages and their borders by adding custom CSS code.

This is done by using either the “padding” property or one of its sub-properties such as “padding-top”. You can also use negative values for these properties if you want to decrease spacing around an element.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.