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.
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:
.grid--collection with gap: 0 !important; in CSS, but this didn’t resolve the issue..collection-list { gap: 0 !important; } was then proposed.Problem Evolution:
Final Solution:
Custom CSS was provided using media queries for desktop screens (min-width: 750px):
gap: 0 on .collection-listdisplay: grid with grid-template-columns: repeat(3, 1fr) to create three equal columnswidth: 100%; max-width: 100%;Outcome:
The solution successfully eliminated gaps and made the three collections fit horizontally across the entire screen. Issue resolved.
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
Sorry, its not working
Hi @AnSrSi
Which page can I see that issue?
In the collection list of home page home page
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;
}
so you want image fit to entire screen or white gap same horizontal?
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%;
}
}
Thank you @BiDeal-Discount ,
Its working perfectly.
You’re welcome. let me know if you need furture assistance