Shopify themes, liquid, logos, and UX
Hello,
I would like to remove the paddings in the screenshots below from the collections in mobile view (the green and purple ones).
I've already figured out how to do this on desktop, but I've tried literally everything to remove it from mobile view and can't get anywhere.
This is the code in the base.css file that removes the paddings on desktop view:
/*Show products in collections at full width in desktop view (Collections like All items)*/ @media screen and (min-width: 0px) { .collection.page-width { padding: 0 0rem !important; max-width: none !important; } } /*Show products in featured collection at full width in desktop view (Frontpage)*/ @media screen and (min-width: 0px) { .slider-mobile-gutter.page-width { padding: 0 0rem !important; max-width: none !important; } }
Link to the starting page: https://ludac.de/
Link to the collections page (All items): https://ludac.de/collections/frontpage
I would be very grateful for any help with this.
Solved! Go to the solution
This is an accepted solution.
Please, Replace on this one.
@media only screen and (max-width: 749px){
.collection.page-width {
padding: 0 !important;
}
.collection .grid__item {
max-width: 50% !important;
}
}
And Save.
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi @sebispn
@media screen and (max-width: 749px){
.grid--2-col-tablet-down .grid__item {
width: 49% !important;
max-width: 50% !important;
}
.collection.page-width {
padding: 0 !important;
}
}
Please give the code I provided a try and follow the guide above.
Hi @sebispn
Try this one.
@media only screen and (max-width: 749px){
.collection.page-width {
padding: 0;
}
.collection .grid__item {
max-width: 50%;
}
}
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thanks for your answer but unfortunately it doesn't work. I added the code to the end of the Base.css, but the paddings are still there.
Hi @sebispn
Could you please kindly try the one I sent you above?
Hi, like I already said I added the code at the bottom of the base.css files and unfortunately it doenst work. Please correct me if I did something wrong, but the code is at the end of the base.css file (see red frame in the screenshot) and the paddings are still there.
This is an accepted solution.
Please, Replace on this one.
@media only screen and (max-width: 749px){
.collection.page-width {
padding: 0 !important;
}
.collection .grid__item {
max-width: 50% !important;
}
}
And Save.
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Hi @sebispn,
Please go to Actions > Edit code > Assets > base.css file and paste this at the bottom of the file:
@media screen and (max-width: 749px) {
.collection.page-width {
padding: 0 !important;
}
.collection.page-width .grid--2-col-tablet-down .grid__item {
max-width: none;
}
}
result
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024