Each section in Squarespace 7.1 uses the .page-section class. You can override the default padding globally or target specific sections by their data-section-id attribute.
To target a specific section, inspect the element to find its data-section-id and use an attribute selector. This lets you set different padding on different sections.
/* Global section padding */
.page-section {
padding-top: 60px !important;
padding-bottom: 60px !important;
}
/* Specific section by ID */
[data-section-id="6501abc123def"] {
padding-top: 100px !important;
padding-bottom: 100px !important;
}
/* Reduce padding on mobile */
@media screen and (max-width: 767px) {
.page-section {
padding-top: 40px !important;
padding-bottom: 40px !important;
}
}Calculate section spacing with our Spacing CalculatorTry it free →
