> For the complete documentation index, see [llms.txt](https://docs.nftembed.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nftembed.org/custom-styling/spacing-and-orientation/margins.md).

# Margins

The majority of these settings should get left as default. However, if you feel confident, feel free to adjust and change the parameters.

Adjusting “**margins**” will change the space around elements.

![1 px margin — gap between boxes](/files/vcfKjUy4jlWSasnp5wDJ) ![5 px margin — gap between boxes](/files/1lmsPJNm1CwBBZXUK1CS) ![10 px margin — gap between elements](/files/UTrlT4iViuoVoEB39WnR) ![20 px margin — gap between elements](/files/5iiGPNOZThYgTd7oQhJK)

When unspecified, margin is applied equally around elements. The margin property has four values.

* top margin
* right margin
* bottom margin
* left margin

```jsx
"margin": "0.2rem", // a single value means space is equal
```

### Other values:

```javascript
// Use these variables for creating space around elements
// You can use all of them or the desired side 

"margin-top": "5px", // Create margin above elements
"margin-bottom": "5px", // Create margin below elements
"margin-right": "5px", // Create margin to the right of elements
"margin-left": "5px", // Create margin to the left of elements
```

```javascript
"margin": "0.5em", // a single value means space is equal
```

```javascript
"margin": "10% 0",
```

```javascript
"margin": "10px 5px 10px", // top , sides , bottom
```

```javascript
"margin": "5px 10px 5px 10px", // top, right, bottom, left (Clockwise)
```

{% hint style="success" %}
Values can be used individually.
{% endhint %}

```javascript
"margin": "0", // no margins around the element
```


---

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

```
GET https://docs.nftembed.org/custom-styling/spacing-and-orientation/margins.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.
