Files
textual/docs/styles/min_width.md
Will McGugan 99ccbc5eb8 moar docs
2022-07-30 22:33:55 +01:00

26 lines
394 B
Markdown

# Min-width
The `min-width` rules sets a minimum width for a widget.
## CSS
```sass
/* Set a minimum width of 10 cells */
min-width: 10;
/* Set a minimum width of 25% of the screen width */
min-width: 25vh;
```
## Python
```python
# Set the minimum width to 10 cells
widget.styles.min_width = 10
# Set the minimum width to 25% of the screen height
widget.styles.min_width = "25vh"
```