All things Shopify and commerce
Hello,
I have coded my collection list so that they are rectangles, however I would like to reduce the padding to the left and right on mobile version. I am happy with desktop version !
URL: https://www.livwithin.com.au/
Hello @ellacoker ,
Follow these steps:
1. Go to Online Store -> Theme -> Edit code
2. Open your Assets > base.css file and paste the following code at the bottom:
@media screen and (max-width: 749px) {
.collection-list-wrapper.page-width {
padding: 0 0px !important;
}
}
Regards
Naveen
Hey there @ellacoker I suggest that you follow these steps to solve your padding issues
Go to Online Store->Theme->Edit code
Step 2: Asset->/section-collection-list.css->paste below code at the bottom of the file:
.collection-list .collection-list__item { width: 50% !important; max-width: 50% !important; }
Let me know if this helps you!
Hi @ellacoker
To reduce the left and right padding on mobile for your collection list section while keeping the desktop layout unchanged, you can add a responsive CSS rule that specifically targets smaller screens.
Add the Following CSS:
@media screen and (max-width: 749px) {
.collection-list-wrapper {
padding-left: 10px !important;
padding-right: 10px !important;
}
}
You can adjust the pixel value. Let me know if this works for you.
Dotsquares Ltd
Problem Solved? ✔ Accept and Like solution to help future merchants.
To reduce the left and right padding on mobile while keeping the desktop version unchanged, you can add a media query in your theme's CSS. Here's a quick sample:
@media only screen and (max-width: 767px) {
.your-collection-class {
padding-left: 10px;
padding-right: 10px;
Just replace .your-collection-class with the actual class used for your collection list container. This will apply the padding adjustment only on mobile devices.
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