mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
@@ -1,6 +1,6 @@
|
||||
# Offset
|
||||
|
||||
The `offset` rule defines an offset for the position of the widget.
|
||||
The `offset` style defines an offset for the position of the widget.
|
||||
|
||||
## Syntax
|
||||
|
||||
@@ -8,7 +8,7 @@ The `offset` rule defines an offset for the position of the widget.
|
||||
offset: <a href="../../css_types/scalar"><scalar></a> <a href="../../css_types/scalar"><scalar></a>;
|
||||
|
||||
offset-x: <a href="../../css_types/scalar"><scalar></a>;
|
||||
offset-y: <a href="../../css_types/scalar"><scalar></a>
|
||||
offset-y: <a href="../../css_types/scalar"><scalar></a>
|
||||
--8<-- "docs/snippets/syntax_block_end.md"
|
||||
|
||||
The two [`<scalar>`](../../css_types/scalar) in the `offset` define, respectively, the offsets in the horizontal and vertical axes for the widget.
|
||||
|
||||
Reference in New Issue
Block a user