Personalized checkout and custom promotions with Shopify Scripts
Hello,
I'm trying to correct the 2 columns layout on mobile so that the size adjusts based on screen size
Here an example of what i'm referring too down below on the video. Website - https://avokitchen.com/
PROBLEM - https://share.getcloudapp.com/9Zuyx4wN
Any help I will gladly appreciated!
Hello!
You need to add this min-with: 100; property to the class on your css stylesheet.
.product-grid .grid__item {
padding-bottom: 1rem;
/* Add this min-width: 100%; property */
min-width: 100%;
}
Hope it helps.
I tried it and this happen instead picture below. Still need help regarding this issue.
Find the class .grid__item and remove this property:
.grid__item {
/* Delete this width property */
width: calc(25% - 0.375rem);
}
That should fix the issue completely.
Let me know.
I'm kind of struggling understanding where i have to go. This what I have done.
Hello Yusa,
I found the problem.
You need to also find this piece of code and change:
max-with: 33.33% !important;
To..
min-with: 33.33% !important;
Should look like this:
@media screen and (min-width: 750px) {
ul#product-grid li.grid__item {
min-width: 33.3%!important;
}
}
Always when you add custom css, put it at the bottom of the file. Because if the class is repeated in the file it will overwirte your custom code.
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