# Spacing
- responsive: true
m: stands for margin
p: stands for padding
t: top
r: right
b: bottom
l: left
x: left, right
y: top, bottom
# format
m-{level}
, p-{level}
- {level}:
1-5
orauto
, each level stands for4px
.
# Example
Content with margin unit 1 (4px)
<div class="container">
<div class="m-1">
Content with margin unit 1 (4px)
</div>
</div>
# format
m{direction}-{level}
, p{direction}-{level}
- allowed {direction} values:
t, r, b, l, x, y
# Example
Block will be margin-auto
<div class="container">
<div class="mx-auto text-center" style="width: 300px">
Block will be margin-auto
</div>
</div>
# format
m{direction}-{breakpoint}-{level}
, p{direction}-{breakpoint}-{level}
# Example
Block margin will changed by breakpoints
<div class="container">
<div class="m-1 m-md-2 m-lg-4 text-center">
Block margin will changed by breakpoints
</div>
</div>