---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-size-unit-value.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-size-unit-value.md
  - href: https://divkit.tech/docs/en/concepts/divs/2/div-size-unit-value.md
    type: text/markdown
    title: Markdown version
  - href: https://divkit.tech/docs/en/llms.txt?revision=r21749084
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt?revision=r21749084

# div-size-unit-value
No description yet.

## Parameters
| Parameters | Description |
| --- | --- |
| `value` | <p>**int**</p><p>Required parameter.</p><p>Element size.</p><p>Restriction for the value `x`: `x >= 0`.</p> |
| `unit` | <p>**string**</p><p>Unit of measurement:<li>`px` — a physical pixel.</li><li>`dp` — a logical pixel that doesn't depend on screen density.</li><li>`sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.</li></p><p>Possible values: `dp`, `sp`, `px`.</p><p>Default value: `dp`.</p> |

<details>
<summary>JSON</summary>

```json
{
  unit: "string",
  value*: "int"
}
```
</details>
