Broadcast v6.2 has been released - Learn more about
What's new
Broadcast Documentation
NewSupport
Broadcast v3
Broadcast v3
  • About Broadcast
    • Broadcast theme documentation
  • Online Store 2.0
    • The new experience
  • Announcement Bar
    • Free shipping message
    • Text announcement
    • Custom HTML
    • Announcement bar settings
  • Header
    • Header styles
    • Navigation images
    • Sticky header
    • Transparent header
    • Social icons
  • Sections
    • How to use sections
    • Section blocks
    • List of sections
    • Sidebar
    • Split images
    • Before and After
  • Products
    • Tabs and accordions
    • Tab content using metafields
    • FAQ Accordions
    • Upselling with metafields
    • Upselling with tags
    • Swatches
    • Size charts
    • Pre-order products using tags
    • Pre-order using metafields
    • Sale items
    • Free products
    • Product page settings
    • Theme blocks
    • Low inventory message
    • Icon block
    • Accordion section
    • Product ratings
    • Related products
  • Siblings
    • About product siblings
    • How to setup siblings
    • Siblings metafields
      • Siblings color
      • Siblings collection
    • Siblings product setup
    • Siblings block
  • Collections
    • Product badges
    • Product badges with metafields
    • Product filtering
    • Quick add
    • Sub-collections
    • Cutline second line
    • Featured image
    • Collection page settings
  • Popups
    • Cookies consent message
    • Image promo with newsletter
    • Text promo
    • Small newsletter
    • Coupon codes
  • Footer
    • Footer settings
    • Theme blocks
  • Blogs
    • Featured posts
    • Blog pages
  • Blog posts
    • Article page
    • Theme blocks
  • Pages
    • Page templates
    • Creating page templates
    • Page section
  • Settings
    • Loading icon
  • Updates
    • Release notes
    • Check your theme version
    • Download latest theme version
    • Updating your theme
      • Updating from version 1 or 2
      • Updating from version 3
  • Support
    • Contacting support
    • Share preview link
    • Earlier documentation
  • Custom
    • Where to make CSS changes
    • How to remove Shopify credit
    • Collection image spacing
Powered by GitBook
On this page
  • Before
  • Result
  • How to
  • Detailed steps
Export as PDF
  1. Custom

Collection image spacing

How to add spacing between products on Collections and Product Grid sections

PreviousHow to remove Shopify credit

In this mini-tutorial, we'll demonstrate how to add spacing between products on Collection pages and any Product Grid section in Broadcast.

Before

Result

How to

If you're experienced with making code changes or adding CSS, here's the CSS snippet you'll need to add:

/* -- Start Broadcast snippet to add spacing on collections and product grid  -- */
@media (min-width: 749px) { 
	.product-item { padding: 20px; }
}
/* - end - */  

The above code snippet will add 20px of padding between images for devices that are larger like a desktop browser. On mobile, the spacing won't be shown as the layout is different. Adding spacing on mobile would make your images appear much smaller, we recommend keeping the mobile layout without spacing.

Detailed steps

In this quick video (3mins), we'll show you the steps to open the code editor and where to add the above code snippet to your theme:

Default design without spacing
White-space added between products