# Cluster Packing

If you have objects selected and click "Cluster" they'll be put into a Cluster without disturbing their position.

{% hint style="info" %}
You can put clusters inside other clusters to create unique layouts
{% endhint %}

### Packing Style <a href="#h_01hb9q13711mc229wgw5e6z5yb" id="h_01hb9q13711mc229wgw5e6z5yb"></a>

There are 3 packing styles that determine how objects are placed inside the cluster:&#x20;

* **Vertical**: objects are placed top to bottom.&#x20;
* **Horizontal**: objects are placed left to right.
* **Grid**:  objects are placed in rows and columns to fit all content.

<figure><img src="https://955540963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgWSBgBDll5yYEIDkdXon%2Fuploads%2FosfIfUzimklfVCcL4stc%2Fimage.png?alt=media&#x26;token=846c22ce-0573-4f37-aca5-c94aad2c4bba" alt=""><figcaption></figcaption></figure>

### Equal size objects <a href="#h_01hb9q13716vy5nf7ac5xhk9kd" id="h_01hb9q13716vy5nf7ac5xhk9kd"></a>

Enable "equal size objects" for all objects inside a cluster to have the same size. When cluster's size is changed all other objects will automatically adjust their size to fit the new parameters.

<figure><img src="https://955540963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgWSBgBDll5yYEIDkdXon%2Fuploads%2FpuPLWSCZlBCLCveYNm93%2Fequal%20size%20objects.gif?alt=media&#x26;token=1b2be59f-18fa-4cb9-8119-6b79f8c854aa" alt=""><figcaption></figcaption></figure>

### Alignment <a href="#alignment" id="alignment"></a>

#### Set alignment on objects in a cluster <a href="#h_01hb9q1371dt11khb09enwn16q" id="h_01hb9q1371dt11khb09enwn16q"></a>

Control horizontal (left, center, right) and vertical (top, middle, bottom) alignment for objects in a cluster.

<figure><img src="https://955540963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgWSBgBDll5yYEIDkdXon%2Fuploads%2FzYr0UigIkTH6dlsg5kRj%2Falignment.gif?alt=media&#x26;token=931591d6-04e0-4794-a439-5ba7de15405b" alt=""><figcaption></figcaption></figure>

### Spacing  <a href="#h_01hb9q13716vy5nf7ac5xhk9kd" id="h_01hb9q13716vy5nf7ac5xhk9kd"></a>

Control the amount of space between objects in a cluster, or spread them out evenly within it.

<figure><img src="https://955540963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgWSBgBDll5yYEIDkdXon%2Fuploads%2FDMJEGgvLL4WCgUHInSdJ%2Fspacing.gif?alt=media&#x26;token=30562c2d-0633-4381-b8a2-bbefd46f11aa" alt=""><figcaption></figcaption></figure>

If the cluster's packing style is set to vertical or horizontal, spacing between object applies vertically or horizontally, respectively. If you have the cluster's packing style set to grid, the specified gap will be applied both vertically and horizontally.

### Padding <a href="#padding" id="padding"></a>

Padding controls the distance from cluster's border to the objects inside it. You can either set uniform vertical and horizontal paddings or control all values separately (top, right, bottom, left)

<figure><img src="https://955540963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgWSBgBDll5yYEIDkdXon%2Fuploads%2FpofGF0TJ8FXQmj2udz5t%2Fpadding.gif?alt=media&#x26;token=36c56321-e4d1-4cb4-8014-d9fd65dc3ad4" alt=""><figcaption></figcaption></figure>

### Scaling <a href="#resizing" id="resizing"></a>

Use the corner elements to scale the cluster along with the objects inside it.:

<figure><img src="https://955540963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgWSBgBDll5yYEIDkdXon%2Fuploads%2FjYYlxICxLP2c4CCsvyAC%2Fscaling.gif?alt=media&#x26;token=a66f0ee5-a804-4f86-b3fa-32602391f76e" alt=""><figcaption></figcaption></figure>


---

# 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://learn.cozmos.com/guides/clusters/cluster-packing.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.
