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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024