more docs

This commit is contained in:
Will McGugan
2022-07-31 08:47:34 +01:00
parent 99ccbc5eb8
commit 0fe4b970f0
11 changed files with 235 additions and 12 deletions

View File

@@ -2,9 +2,11 @@
The `margin` rule adds space around the entire widget.
- `1` Sets a margin of 1 around all 4 edges
- `1 2` Sets a margin of 1 on the top and bottom edges, and a margin of 2 on the left and right edges
- `1 2 3 4` Sets a margin of one on the top edge, 2 on the right, 3 on the bottom, and 4 on the left.
- `margin: 1;` Sets a margin of 1 around all 4 edges
- `margin: 1 2;` Sets a margin of 1 on the top and bottom edges, and a margin of 2 on the left and right edges
- `margin: 1 2 3 4;` Sets a margin of one on the top edge, 2 on the right, 3 on the bottom, and 4 on the left.
Margin may also be set individually, following the same pattern as above, by setting `margin-top`, `margin-right`, `margin-bottom`, or `margin-left`.
## Example