# Collection image spacing

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

### Before

![Default design without spacing](/files/tTgG17ZTbThmpRhoBVhw)

### Result

![White-space added between products](/files/7nN2wJHU2Og211xtEvDD)

## 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.&#x20;

### 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:

{% embed url="<https://www.loom.com/share/8bc35ca260164b44928815015acb75ef>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://broadcast.presidiocreative.com/broadcast-v4/custom/collection-image-spacing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
