---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-fixed-size.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-fixed-size.md
  - href: en/concepts/divs/2/div-fixed-size.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-fixed-size
Fixed size of an element.

## Parameters
| Parameters | Description |
| --- | --- |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `fixed`.</p> |
| `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. To learn more about units of size measurement, see [Layout inside the card](../../layout).</p><p>Possible values: `dp`, `sp`, `px`.</p><p>Default value: `dp`.</p> |

<details>
<summary>JSON</summary>

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