I’d like to add a thin border around my products in all my product grids. Something like this:
I’m using the Supply theme. Any help would be appreciated. Thanks.
A user wants to add a thin border around product images in their product grids on the Supply theme. They provided an example image and their store URL (defiancerc.myshopify.com, password protected).
Solution provided:
A community member shared CSS code to achieve this effect:
.grid-item.one-half--small.one-quarter--medium.one-quarter--large.on-sale {
border: 1px solid black;
padding: 20px;
height: 380px;
}
#div.collection-rows--collection-row-1 a.product-grid-item {
object-fit: cover;
}
The helper included a screenshot showing the expected result with bordered product cards.
I’d like to add a thin border around my products in all my product grids. Something like this:
I’m using the Supply theme. Any help would be appreciated. Thanks.
Hi @Ting_Wang ,
Would you mind to share your URL website? with password if its protected. Thanks!
Thank you for the information. Try this one.
.grid-item.small--one-half.medium--one-quarter.large--one-quarter.on-sale {}
a.product-grid-item {
border: 1px solid black;
padding: 20px;
height: 380px
}
div#collection-rows--collection-row-1 a.product-grid-item {
object-fit: cover
}
Result:
I hope it help.