A wide variety of margin and padding utility classes to manipulate your UI element spacing in a most easiest way
spacer-{property}-{side}-{size}
m - for margin p - for padding
t
- for top
r
- for right
b
- for bottom
l
- for left
x
- for both left
and right
sides
y
- for both top
and bottom
sides
Size | Value |
---|---|
xs | 4px |
sm | 8px |
nm | 16px |
md | 24px |
lg | 32px |
xl | 48px |
xxl | 64px |
<div class="spacer-p-sm"></div>
- Small
<div class="spacer-p-nm"></div>
- Normal
<div class="spacer-p-md"></div>
- Medium
<div class="spacer-p-lg"></div>
- Large
<div class="spacer-p-none"></div>
- No padding
Works only for block or inline block level elements. Does not work with inline elements.
<div class="spacer-m-sm"></div>
- Small
<div class="spacer-m-nm"></div>
- Normal
<div class="spacer-m-md"></div>
- Medium
<div class="spacer-m-lg"></div>
- Large
<div class="spacer-m-none"></div>
- No margin
<div class="spacer-p-y-sm"></div>
- Small
<div class="spacer-p-y-base"></div>
- Normal
<div class="spacer-p-y-md"></div>
- Medium
<div class="spacer-p-y-lg"></div>
- Large
<div class="spacer-p-y-none"></div>
- No padding for top and bottom
<div class="spacer-m-x-sm"></div>
- Small
<div class="spacer-m-x-base"></div>
- Normal
<div class="spacer-m-x-md"></div>
- Medium
<div class="spacer-m-x-lg"></div>
- Large
<div class="spacer-m-x-none"></div>
- No margin for left and right side
<div class="spacer-m-t-sm"></div>
- Small margin at the top
<div class="spacer-p-b-lg"></div>
- Large padding at the bottom