---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-edge-insets.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-edge-insets.md
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-edge-insets
It sets margins.

## Parameters
| Parameters | Description |
| --- | --- |
| `bottom` | <p>**int**</p><p>Bottom margin.</p><p>Restriction for the value `x`: `x >= 0`.</p><p>Default value: `0`.</p> |
| `end` | <p>**int**</p><p>End margin. Margin position depends on the interface orientation. Has higher priority than the left and right margins.</p><p>Restriction for the value `x`: `x >= 0`.</p> |
| `left` | <p>**int**</p><p>Left margin.</p><p>Restriction for the value `x`: `x >= 0`.</p><p>Default value: `0`.</p> |
| `right` | <p>**int**</p><p>Right margin.</p><p>Restriction for the value `x`: `x >= 0`.</p><p>Default value: `0`.</p> |
| `start` | <p>**int**</p><p>Start margin. Margin position depends on the interface orientation. Has higher priority than the left and right margins.</p><p>Restriction for the value `x`: `x >= 0`.</p> |
| `top` | <p>**int**</p><p>Top margin.</p><p>Restriction for the value `x`: `x >= 0`.</p><p>Default value: `0`.</p> |
| `unit` | <p>**string**</p><p>Possible values: `dp`, `sp`, `px`.</p><p>Default value: `dp`.</p> |

<details>
<summary>JSON</summary>

```json
{
  bottom: "int",
  end: "int",
  left: "int",
  right: "int",
  start: "int",
  top: "int",
  unit: "string"
}
```
</details>
