mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add examples for min/max width/height.
This commit is contained in:
25
docs/examples/styles/max_height.css
Normal file
25
docs/examples/styles/max_height.css
Normal file
@@ -0,0 +1,25 @@
|
||||
Horizontal {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
Placeholder {
|
||||
height: 100%;
|
||||
width: 1fr;
|
||||
}
|
||||
|
||||
#p1 {
|
||||
max-height: 10w;
|
||||
}
|
||||
|
||||
#p2 {
|
||||
max-height: 999; /* (1)! */
|
||||
}
|
||||
|
||||
#p3 {
|
||||
max-height: 50%;
|
||||
}
|
||||
|
||||
#p4 {
|
||||
max-height: 10;
|
||||
}
|
||||
Reference in New Issue
Block a user