mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix links to CSS types.
This commit is contained in:
@@ -5,25 +5,25 @@ The `margin` rule specifies spacing around a widget.
|
||||
## Syntax
|
||||
|
||||
--8<-- "docs/snippets/syntax_block_start.md"
|
||||
margin: <a href="../css_types/integer.md"><integer></a>
|
||||
margin: <a href="../../css_types/integer"><integer></a>
|
||||
# one value for all edges
|
||||
| <a href="../css_types/integer.md"><integer></a> <a href="../css_types/integer.md"><integer></a>
|
||||
| <a href="../../css_types/integer"><integer></a> <a href="../../css_types/integer"><integer></a>
|
||||
# top/bot left/right
|
||||
| <a href="../css_types/integer.md"><integer></a> <a href="../css_types/integer.md"><integer></a> <a href="../css_types/integer.md"><integer></a> <a href="../css_types/integer.md"><integer></a>;
|
||||
| <a href="../../css_types/integer"><integer></a> <a href="../../css_types/integer"><integer></a> <a href="../../css_types/integer"><integer></a> <a href="../../css_types/integer"><integer></a>;
|
||||
# top right bot left
|
||||
|
||||
margin-top: <a href="../css_types/integer.md"><integer></a>;
|
||||
margin-right: <a href="../css_types/integer.md"><integer></a>;
|
||||
margin-bottom: <a href="../css_types/integer.md"><integer></a>;
|
||||
margin-left: <a href="../css_types/integer.md"><integer></a>;
|
||||
margin-top: <a href="../../css_types/integer"><integer></a>;
|
||||
margin-right: <a href="../../css_types/integer"><integer></a>;
|
||||
margin-bottom: <a href="../../css_types/integer"><integer></a>;
|
||||
margin-left: <a href="../../css_types/integer"><integer></a>;
|
||||
--8<-- "docs/snippets/syntax_block_end.md"
|
||||
|
||||
The `margin` specifies spacing around the four edges of the widget equal to the [`<integer>`](../css_types/integer.md) specified.
|
||||
The `margin` specifies spacing around the four edges of the widget equal to the [`<integer>`](../../css_types/integer) specified.
|
||||
The number of values given defines what edges get what margin:
|
||||
|
||||
- 1 [`<integer>`](../css_types/integer.md) sets the same margin for the four edges of the widget;
|
||||
- 2 [`<integer>`](../css_types/integer.md) set margin for top/bottom and left/right edges, respectively.
|
||||
- 4 [`<integer>`](../css_types/integer.md) set margin for the top, right, bottom, and left edges, respectively.
|
||||
- 1 [`<integer>`](../../css_types/integer) sets the same margin for the four edges of the widget;
|
||||
- 2 [`<integer>`](../../css_types/integer) set margin for top/bottom and left/right edges, respectively.
|
||||
- 4 [`<integer>`](../../css_types/integer) set margin for the top, right, bottom, and left edges, respectively.
|
||||
|
||||
!!! tip
|
||||
|
||||
|
||||
Reference in New Issue
Block a user