mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add subsections for references with 2+ examples.
This commit is contained in:
@@ -34,6 +34,8 @@ Alternatively, margin can be set for each edge individually through the rules `m
|
||||
|
||||
## Examples
|
||||
|
||||
### Basic usage
|
||||
|
||||
In the example below we add a large margin to a label, which makes it move away from the top-left corner of the screen.
|
||||
|
||||
=== "Output"
|
||||
@@ -53,6 +55,8 @@ In the example below we add a large margin to a label, which makes it move away
|
||||
--8<-- "docs/examples/styles/margin.css"
|
||||
```
|
||||
|
||||
### All margin settings
|
||||
|
||||
The next example shows a grid.
|
||||
In each cell, we have a placeholder that has its margins set in different ways.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user