Collection List - Mobile Fix

Topic summary

A Shopify store owner seeks to reduce left and right padding on their collection list’s mobile view while keeping the desktop layout unchanged. The site displays rectangular collection items that currently have excessive side padding on mobile devices.

Proposed Solutions:
Multiple developers offered CSS-based fixes, all involving media queries targeting mobile screens (max-width: 749px or 767px):

  • Option 1: Target .collection-list-wrapper.page-width with padding: 0 0px !important
  • Option 2: Adjust item width by setting .collection-list__item to width: 50% and max-width: 50%
  • Option 3: Apply customizable padding values (e.g., 10px) to .collection-list-wrapper
  • Option 4: Set padding to 0px on .collection-list-wrapper

Implementation:
All solutions require adding CSS code either through:

  • Online Store → Theme → Edit Code → base.css/section-collection-list.css, or
  • Theme Customizer → Custom CSS section

The discussion remains open with no confirmation of which solution was implemented or whether the issue was resolved.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

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.

Hello @ellacoker,

If you want to reduce the left and right padding of your collection list only on mobile, you can use a media query to target smaller screen sizes. Since you’ve already identified the specific section IDs, you can apply the following CSS:
Where to Add This:
If your theme allows custom CSS through the Theme Customizer, add it there under Theme settings > Custom CSS.

Or, go to Online Store > Themes > Edit Code, open your main CSS file (like base.css or theme.css), and paste the code at the bottom.

@media screen and (max-width: 767px){
.collection-list-wrapper{
padding-left: 0px;
padding-right: 0px;
}
}