Shopify themes, liquid, logos, and UX
Hi,
i'm trying to get my website to have a full width grid with grey border (like attached) but can only get it with gaps.
Can anybody help with the code please?
code in theme.liquid
<style> ul#product-grid { gap: 0 !important; justify-content: center !important; } .grid--4-col-desktop .grid__item { border: solid 1px black; } </style>
Solved! Go to the solution
This is an accepted solution.
Add this one.
.collection .grid {
gap: 0px;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @visualess
Do you mean like this?
If it is check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.card.card--standard.card--media {
border: .3px solid rgba(0, 0, 0, 0.3);
}
ul#product-grid {
gap: 0;
}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hey! @Made4uo-Ribe
Thanks for your response!
I added the code and it's like this still. Am I missing something?
site: 4qs.uk
password: 44444
This is an accepted solution.
Add this one.
.collection .grid {
gap: 0px;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Amazing thank you!
is it able to go full width or is that not an option?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025