Eliminate gap between collections of collection list

Topic summary

A user sought to remove white space gaps between collection cards in a Shopify store’s collection list section—both column gaps on desktop and row gaps on mobile.

Initial Attempts:

  • First suggestion involved targeting .grid--collection with gap: 0 !important; in CSS, but this didn’t resolve the issue.
  • A simpler approach using .collection-list { gap: 0 !important; } was then proposed.

Problem Evolution:

  • Removing the gap created a new issue: white space appeared on the rightmost side of the screen instead of collections spanning the full width.

Final Solution:
Custom CSS was provided using media queries for desktop screens (min-width: 750px):

  • Set gap: 0 on .collection-list
  • Applied display: grid with grid-template-columns: repeat(3, 1fr) to create three equal columns
  • Ensured collection items take full width with width: 100%; max-width: 100%;

Outcome:
The solution successfully eliminated gaps and made the three collections fit horizontally across the entire screen. Issue resolved.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hi there,

I wanted to eliminate the empty column gap between each collections of the collection list section for desktop and eliminate the row gap for mobile.

Store : https://www.valcoure.store/

password: kothavara

Thank You.

look for stuff like this in the HTML


then go into your CSS or custom CSS and add something like

.grid--collection {
  gap: 0 !important;
}

sometimes themes use gap, sometimes margin, so you might need to try a few till it sticks
also check if the section above or below has padding-bottom or padding-top set, cause that can create the illusion of a gap even when the collection list is tight

1 Like

Sorry, its not working

Hi @AnSrSi

Which page can I see that issue?

1 Like

In the collection list of home page home page

I see it’s displaying normally on desktop, which screen size you want to change?

1 Like

As you can see there is a white gap between these collection cards in both the desktop and mobile. I don’t want that white space.

You can try to add this Custom CSS code:

.collection-list {
    gap: 0 !important;
}
1 Like

now there is a white gap in the rightmost side

so you want image fit to entire screen or white gap same horizontal?

1 Like

i want the three collections to be arranged horizontally without any gap and should fit in the screen without an gaps

Got your point.

so let try to add this Custom CSS code:

@media screen and (min-width: 750px) {
  .collection-list {
    gap: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .collection-list > li.collection-list__item {
    width: 100%;
    max-width: 100%;
  }
}

1 Like

Thank you @BiDeal-Discount ,

Its working perfectly.

You’re welcome. let me know if you need furture assistance