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-40 |
padding-top: 40px |
.pb-40 |
padding-bottom: 40px |
.pl-40 |
padding-left: 40px |
.pr-40 |
padding-right: 40px |
.px-40 |
padding-left: 40px padding-right: 40px |
.py-40 |
padding-top: 40px padding-bottom: 40px |
.p-40 |
padding: 40px |
Class name | Description |
---|---|
.mt-40 |
margin-top: 40px |
.mb-40 |
margin-bottom: 40px |
.ml-40 |
margin-left: 40px |
.mr-40 |
margin-right: 40px |
.mx-40 |
margin-left: 40px margin-right: 40px |
.my-40 |
margin-top: 40px margin-bottom: 40px |
.m-40 |
margin: 40px |