# Repeating groups

Repeating groups follow specific rules to be compliant with openBuild. In order for RG's to have the same alignment, we have a specific RG containers containing our RG's, ensuring 20px gap between our items as well as 20px padding on both sides.

![](/files/4iDo5pwY5WnbxIU7RcHJ)

<table><thead><tr><th width="238">Element</th><th>Padding</th></tr></thead><tbody><tr><td>RG container</td><td>10px Left/Right</td></tr><tr><td>RG</td><td>-</td></tr><tr><td>Outer</td><td>10px Left/Right/Top/Bottom</td></tr><tr><td>Inner</td><td>Depends (how the card is designed)</td></tr></tbody></table>

#### RG number of columns

While Bubble allows you to set up the number of columns you want in your RG, this number is fixed. With openBuild framework, you can play with RG column min width to get the desired layout.

<table><thead><tr><th>RG column min wdth</th><th width="171"># of columns on 1280 px</th><th width="162"># of columns on 768px</th><th># of columns on 320px</th></tr></thead><tbody><tr><td>280px</td><td>4</td><td>2</td><td>1</td></tr><tr><td>224px</td><td>5</td><td>3</td><td>1</td></tr><tr><td>204px</td><td>6</td><td>4</td><td>1</td></tr></tbody></table>

#### Set up max column # (CSS)

Another possibility offered to set up the maximum number of RG column you need is to use custom CSS.

```
<style>
@media only screen and (max-width: 640px) {
#rg-col-2 {
grid-template-columns: repeat(1, minmax(280px, 1fr))!important;
}
#rg-col-3 {
grid-template-columns: repeat(1, minmax(280px, 1fr))!important;
}}
@media only screen and (min-width: 641px) and (max-width: 960px) {
#rg-col-3 {
grid-template-columns: repeat(2, minmax(280px, 1fr))!important;
}}
</style>


```

&#x20;


---

# 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://docs.openbuild.io/core-concepts/responsive-design/repeating-groups.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.
