Skip to content

Commit 8eafb83

Browse files
committed
Add section on extended negative margins
1 parent 1cf63fe commit 8eafb83

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/content/utilities/margin.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,17 @@ You can add negative margins to the top, right, bottom, or left of an item by ad
125125
</div>
126126
</div>
127127
```
128+
129+
## Extended negative margins
130+
131+
You can use the extended spacing scale for `top` and `bottom` margins, ranging from `1` to `12`.
132+
133+
```html live
134+
<div class="d-flex flex-justify-center">
135+
<div class="py-6 px-3 color-bg-warning">
136+
<div class="mt-n8 border-left border-red color-bg-tertiary p-2">
137+
.mt-n8
138+
</div>
139+
</div>
140+
</div>
141+
```

0 commit comments

Comments
 (0)