mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
moar docs
This commit is contained in:
25
docs/styles/min_height.md
Normal file
25
docs/styles/min_height.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Min-height
|
||||
|
||||
The `min-height` rule sets a minimum height for a widget.
|
||||
|
||||
## CSS
|
||||
|
||||
```sass
|
||||
|
||||
/* Set a minimum height of 10 rows */
|
||||
min-height: 10;
|
||||
|
||||
/* Set a minimum height of 25% of the screen height */
|
||||
min-height: 25vh;
|
||||
```
|
||||
|
||||
## Python
|
||||
|
||||
```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"
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user