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.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024