> 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-v4/custom/collection-image-spacing.md).

# Collection image spacing

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

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](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/AsHWCpPkrTTPUJKdehM6/Screen%20Shot%202022-07-19%20at%209.14.10%20AM.png)

### Result

![White-space added between products](https://content.gitbook.com/content/Rsx9yqijvDkkcmGBKHkk/blobs/vumNsNDslLfKLN9BPLE4/Screen%20Shot%202022-07-19%20at%209.21.51%20AM.png)

## 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
