mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
lots more docs
This commit is contained in:
@@ -4,12 +4,20 @@ The `width` rule sets a widget's width. By default, it sets the width of the con
|
||||
|
||||
## Example
|
||||
|
||||
This example adds a widget with 50% width of the screen.
|
||||
|
||||
=== "width.py"
|
||||
|
||||
```python
|
||||
--8<-- "docs/examples/styles/width.py"
|
||||
```
|
||||
|
||||
=== "width.css"
|
||||
|
||||
```css
|
||||
--8<-- "docs/examples/styles/width.css"
|
||||
```
|
||||
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/styles/width.py"}
|
||||
|
||||
Reference in New Issue
Block a user