Assign margin
or padding
to an element or a subset of its sides
with shorthand classes. Includes support for individual properties, all properties, and
vertical and horizontal properties. It uses Bootstrap 4 spacing format of
{property}{sides}-{size}
. Available sizes can be any of:
Class name | Description |
---|---|
.pt-40px |
padding-top: 40px |
.pb-40px |
padding-bottom: 40px |
.ps-40px |
padding-left: 40px |
.pe-40px |
padding-right: 40px |
.px-40px |
padding-left: 40px padding-right: 40px |
.py-40px |
padding-top: 40px padding-bottom: 40px |
.p-40 |
padding: 40px |
Class name | Description |
---|---|
.mt-40px |
margin-top: 40px |
.mb-40px |
margin-bottom: 40px |
.ms-40px |
margin-left: 40px |
.me-40px |
margin-right: 40px |
.mx-40px |
margin-left: 40px margin-right: 40px |
.my-40px |
margin-top: 40px margin-bottom: 40px |
.m-40 |
margin: 40px |