Jump to content

Remove space beween image blocks

Go to solution Solved by deabru,

Recommended Posts

I have tried a bunch of different CSS code from the offered answers here, but I cannot seem to resolve this space issue.

How do I correct these images so that they line up along the centre line?

I believe this is an image margin issue, but the codes I have tried are not working.


Link to comment

Add an Image Card to any page section. Make sure the Image Card  is by itself in this section – do not add any additional blocks.

Set the page section’s format settings to the following:

    Section Height: 10

    Content Width: Large

    Content Alignment: Middle

Once the page is saved, go to the Custom CSS Editor. Copy and paste the code below into the Custom CSS Editor box.

// Full Width Image Card - Page Section //

[data-section-id="012345"] {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
    .content-wrapper  {
      padding: auto !important;
      margin: 0px auto;
      display: contents;
.sqs-layout .sqs-row .sqs-block {
  padding-bottom: 0px !important;
  padding-top: 0px !important;

// Full Width Image Card - Text Padding //
.image-card-wrapper .sqs-dynamic-text-container {
  padding: 40px !important;

// Full Width Image Card - Mobile Stack //

@media (max-width: 800px) {
  .design-layout-card {
    flex-direction: column !important;
    .image-card-wrapper, .intrinsic {
      width: 100% !important;

Next, you’ll need to locate the page section’s ID. Use this free Google Chrome Extension to find this ID.

Replace [data-section-id="012345"] with the page section’s ID. This will make the page section full width, resulting in the Image Card Block being full width as well.


Hi, I'm BITTU. A website developer with 10 years experience with Squarespace. if you need help and work with me email me here :- mandeepsquarespace@gmail.com

Website:-  dhanjalsolution.com

Best Hourly Rate :- $15 Per Hour

Link to comment
  • 2 weeks later...
  • Solution

So I found a solution that did not require any CSS.

In the "Edit Section" there is an option called "Gap" - the horizontal is preset to "11" and when updated to "0" the gap between content blocks disappears and they line-up at the center.



Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.