mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add overflow CSS type.
This commit is contained in:
27
docs/css_types/overflow.md
Normal file
27
docs/css_types/overflow.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# <overflow>
|
||||
|
||||
The `<overflow>` CSS type represents overflow modes.
|
||||
|
||||
## Syntax
|
||||
|
||||
--8<-- "docs/snippets/type_syntax/overflow.md"
|
||||
|
||||
## Examples
|
||||
|
||||
### CSS
|
||||
|
||||
```sass
|
||||
* {
|
||||
rule: auto; /* Determine overflow mode automatically. */
|
||||
rule: hidden; /* Don't overflow. */
|
||||
rule: scroll; /* Allow overflowing. */
|
||||
}
|
||||
```
|
||||
|
||||
### Python
|
||||
|
||||
```py
|
||||
overflow = "auto" # Determine overflow mode automatically.
|
||||
overflow = "hidden" # Don't overflow.
|
||||
overflow = "scroll" # Allow overflowing.
|
||||
```
|
||||
Reference in New Issue
Block a user