How can I increase row spacing on a collection page?

Topic summary

A user seeks to increase the vertical spacing between product rows on their Shopify collection page for both mobile and desktop views.

Two CSS solutions were provided:

  1. First approach (Made4uo-Ribe):

    • Navigate to Shopify admin → Online Store → Themes → Edit code
    • Locate the CSS file (base.css, style.css, or theme.css) in the Assets folder
    • Add this code at the bottom:
    .collection__products {
      row-gap: 50px !important;
    }
    
    • Includes before/after screenshots showing the visual result
  2. Alternative approach (PageFly-Henry):

    • Follow similar steps to access theme code
    • Add this code instead:
    .list-collections__grid {
      grid-column-gap: 50px !important;
    }
    

Both solutions involve adding custom CSS to adjust spacing. The pixel value (50px) can be adjusted based on desired spacing. The discussion remains open with no confirmation of which solution the user implemented.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

I want to make the space between rows on collection page larger on both mobile and desktop, any idea how to target this?

https://afca7f-2.myshopify.com, pw: outdoors

1 Like

Hi @blakelyhi

Check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.collection__products {
    row-gap: 50px !important;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Hi @blakelyhi

This is Henry from PageFly - Landing Page Builder App

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.css

Step 3: Paste the below code at bottom of the file → Save

.list-collections__grid {

grid-column-gap: 50px !important;

}

Hope that my solution works for you.

Best regards,

Henry | PageFly