> For the complete documentation index, see [llms.txt](https://broadcast.presidiocreative.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://broadcast.presidiocreative.com/broadcast-v3/custom/collection-image-spacing.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
