File size: 432 Bytes
5b76e0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Max-width

The `max-width` rule sets a maximum width for a widget.

## Syntax

```
max-width: <SCALAR>;
```

## CSS

```sass

/* Set a maximum width of 10 cells */
max-width: 10;

/* Set a maximum width of 25% of the screen width */
max-width: 25vw;
```

## Python

```python
# Set the maximum width to 10 cells
widget.styles.max_width = 10

# Set the maximum width to 25% of the screen width
widget.styles.max_width = "25vw"
```