Shopify themes, liquid, logos, and UX
After selecting an item on my website, at first you could smoothly scroll through the images on both pc and mobile however once you reach the bottom of the page and scroll back up, the images of the item appear differently ie from this :
to this :
This happens for all items but here is one to test it out on. TIA
Solved! Go to the solution
This is an accepted solution.
Please try to remove or make this code comment in assets/base.css.
@media screen and (min-width: 750px) {
.grid--2-col-tablet .grid__item {
/* width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2); */
}
}
This is an accepted solution.
Please try disable or make comment for margin-left: 1.5rem; in assets/base.css.
And add width: 100%; instead.
@media screen and (max-width: 749px) {
.grid--peek.slider .grid__item:first-of-type {
/* margin-left: 1.5rem; */
width: 100%;
}
}
Hi, @ypcollective
It seems like the CSS is not set correctly.
I can check this issue.
Id really appreciate it, if you need me to help out in any way just let me know.
This is an accepted solution.
Please try to remove or make this code comment in assets/base.css.
@media screen and (min-width: 750px) {
.grid--2-col-tablet .grid__item {
/* width: calc(50% - var(--grid-desktop-horizontal-spacing) / 2); */
}
}
It worked for pc , but hasnt been fixed for mobile . please check it
I can see this on mobile. How should it work?
It should remain like this and the image display shouldnt change
This is an accepted solution.
Please try disable or make comment for margin-left: 1.5rem; in assets/base.css.
And add width: 100%; instead.
@media screen and (max-width: 749px) {
.grid--peek.slider .grid__item:first-of-type {
/* margin-left: 1.5rem; */
width: 100%;
}
}
Thank you this worked , and i removed "first-of-type" since it was only working for the first image but now it works for all. Appreciate your help Vinh. Thank you
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025