How to remove Padding Around Video Blocks in Squarespace 7.1

Videos are an incredible tool for engaging your audience—whether you’re telling a personal story or showing off a cool new product on the homepage. But when you insert a video block in Squarespace 7.1 and you might see padding or spacing (white space) around the video, thus the video is misaligned from another nearby block.

In this post, we’ll guide you through an easy and elegant method of removing padding from video blocks through the use of custom CSS to let your video content fit smoothly and neatly into your layout.

The Problem: Unwanted Padding Around Video Blocks

Padding and spacing are automatically added to your Squarespace video blocks, resulting in a nicely balanced look. This works fine in terms of most layouts, but can be limiting if you’re trying to achieve:

  • A full-width video experience

  • A cleaner, edge-to-edge layout

  • Its behavior aligns with images or text 

The Solution: Custom CSS to Remove Padding

You can easily override Squarespace’s default padding rules by targeting video blocks with custom CSS.

Step-by-Step Instructions

1. Navigate to:

Pages → Custom code → Custom CSS

2. Paste the following code:

Copied!

/* Remove padding and margin from all video blocks */
.sqs-block-video {
  padding: 0 !important;
  margin: 0 !important;
}
/* Remove inner container spacing */
.sqs-block-video .intrinsic {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
  

This will:

  • Strip away all padding and margin from Squarespace’s native video block

  • Ensure the video spans the full width of its container

Target a Specific Video Block Only

If you want to apply this styling to a single video block, do the following:

  1. Right-click on the video → Inspect

  2. Locate its block ID (e.g. #block-yui_3_17_2_1_1682345678901_12345)

  3. Use this CSS:

Copied!

/* Remove spacing from a specific video block */
#block-yui_3_17_2_1_1682345678901_12345 {
  padding: 0 !important;
  margin: 0 !important;
}
#block-yui_3_17_2_1_1682345678901_12345 .intrinsic {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
  

Mobile Optimization (Optional)

Ensure consistent spacing on smaller screens by adding:

Copied!

@media screen and (max-width: 767px) {
  .sqs-block-video {
    padding: 0 !important;
    margin: 0 !important;
  }
}
  

This ensures your video block remains clean and well-aligned across all devices.

Final Result

With this CSS setup, your video would:

  • Place sections flat against section ends or adjacent block pieces

  • Fit for grid-based layouts or image sections

  • Trim unnecessary space for crisp, clean tones for your site.


Frequently Asked Questions (FAQ)

  • Internal padding and margins ensure blocks stay visually balanced within your layouts with Squarespace 7.1. This helps with consistency, but can create extra white space when you want to videos to line up edge-to-edge.

  • If you use the global CSS snippet, it removes padding for all video blocks. If you want to control only one block, then choose its specific block ID instead – this way, only the video is affected.

  • Right-click on the video → select Inspect → locate the HTML element with an ID like #block-yui_3_17_2_1_xxxxx. Copy that ID into your CSS to style only that block.

  • Yes, but you should add a mobile media query to ensure videos stay aligned on smaller screens. For example:


    @media screen and (max-width: 767px) {

      .sqs-block-video { margin: 0 !important; padding: 0 !important; }

    }

  • This adjustment only changes layout and spacing. It won’t affect video resolution or compression (Squarespace still optimizes video files). For sharper playback, use YouTube, Vimeo, or external hosting with embed codes.

Walid Hasan

I'm a Professional Web developer and Certified Squarespace Expert. I have designed 1500+ Squarespace websites in the last 10 years for my clients all over the world with 100% satisfaction. I'm able to develop websites and custom modules with a high level of complexity.

If you need a website for your business, just reach out to me. We'll schedule a call to discuss this further :)

https://www.squareko.com/
Previous
Previous

How to Prevent Image Cropping in Gallery Slideshows on Squarespace 7.1

Next
Next

How to Customize Captions in a Fullscreen Gallery Slideshow on Squarespace 7.1