Files
textual/docs/styles/min_height.md
Will McGugan 2650dd500d Events
2022-08-17 16:11:12 +01:00

441 B

Min-height

The min-height rule sets a minimum height for a widget.

Syntax

min-height: <SCALAR>;

CSS


/* Set a minimum height of 10 rows */
min-height: 10;

/* Set a minimum height of 25% of the screen height */
min-height: 25vh;

Python

# Set the minimum height to 10 rows
self.styles.min_height = 10

# Set the minimum height to 25% of the screen height
self.styles.min_height = "25vh"