---
title: "max width · RUAL Documentation"
description: "sets the maximum width of an element."
canonical: https://docs.rual.nl/block-types/styling/uistyle_max_width
language: en
---

# max width

This block is part of the [`styling`](https://docs.rual.nl/block-types/styling) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

sets the maximum width of an element.

- max-width required `value`

- uistyle `uistyle`

A typical wiring for [max width](https://docs.rual.nl/block-types/styling/uistyle_max_width): the `uistyle` out pin feeds [regular card](https://docs.rual.nl/block-types/state%20ui/state_card).

![Studio canvas example for the max width block: typical wiring for max width.](https://docs.rual.nl/canvas-examples/uistyle_max_width.png)

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
