mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Values sections added to CSS properties docs
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
# Visibility
|
||||
|
||||
The `visibility` rule may be used to make a widget invisible while still reserving spacing for it. The default value is `"visible"` which will cause the Widget to be displayed as normal. Setting the value to `"hidden"` will cause the Widget to become invisible.
|
||||
The `visibility` rule may be used to make a widget invisible while still reserving spacing for it.
|
||||
|
||||
## Syntax
|
||||
|
||||
```
|
||||
visibility: [hidden|visible];
|
||||
visibility: [visible|hidden];
|
||||
```
|
||||
|
||||
### Values
|
||||
|
||||
| Value | Description |
|
||||
|---------------------|----------------------------------------|
|
||||
| `visible` (default) | The widget will be displayed as normal |
|
||||
| `hidden` | The widget will be invisible |
|
||||
|
||||
## Example
|
||||
|
||||
Note that the second widget is hidden, while leaving a space where it would have been rendered.
|
||||
|
||||
Reference in New Issue
Block a user