mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add subsections for references with 2+ examples.
This commit is contained in:
@@ -13,6 +13,8 @@ By default, it sets the height of the content area, but if [`box-sizing`](./box_
|
||||
|
||||
## Examples
|
||||
|
||||
### Basic usage
|
||||
|
||||
This examples creates a widget with a height of 50% of the screen.
|
||||
|
||||
=== "height.py"
|
||||
@@ -32,6 +34,8 @@ This examples creates a widget with a height of 50% of the screen.
|
||||
```{.textual path="docs/examples/styles/height.py"}
|
||||
```
|
||||
|
||||
### All height formats
|
||||
|
||||
The next example creates a series of wide widgets with heights set with different units.
|
||||
Open the CSS file tab to see the comments that explain how each height is computed.
|
||||
(The output includes a vertical ruler on the right to make it easier to check the height of each widget.)
|
||||
|
||||
Reference in New Issue
Block a user