Spacing
Margin Classes
.mt-{number}
.mt-{number}
Applies a margin-top to the element.
CSS equivalent: margin-top: {number}px;
Example usage:
.mb-{number}
.mb-{number}
Applies a margin-bottom to the element.
CSS equivalent: margin-bottom: {number}px;
Example usage:
.ml-{number}
.ml-{number}
Applies a margin-left to the element.
CSS equivalent: margin-left: {number}px;
Example usage:
.mr-{number}
.mr-{number}
Applies a margin-right to the element.
CSS equivalent: margin-right: {number}px;
Example usage:
.mx-{number}
.mx-{number}
Applies a margin to both the left and right sides of the element.
CSS equivalent: margin-left: {number}px; margin-right: {number}px;
Example usage:
.my-{number}
.my-{number}
Applies a margin to both the top and bottom sides of the element.
CSS equivalent: margin-top: {number}px; margin-bottom: {number}px;
Example usage:
.m-{number}
.m-{number}
Applies a margin to all sides of the element.
CSS equivalent: margin: {number}px;
Example usage:
Padding Classes
.p-{number}
.p-{number}
Applies padding to all sides of the element.
CSS equivalent: padding: {number}px;
Example usage:
.pt-{number}
.pt-{number}
Applies padding to the top side of the element.
CSS equivalent: padding-top: {number}px;
Example usage:
.pb-{number}
.pb-{number}
Applies padding to the bottom side of the element.
CSS equivalent: padding-bottom: {number}px;
Example usage:
.pl-{number}
.pl-{number}
Applies padding to the left side of the element.
CSS equivalent: padding-left: {number}px;
Example usage:
.pr-{number}
.pr-{number}
Applies padding to the right side of the element.
CSS equivalent: padding-right: {number}px;
Example usage:
.px-{number}
.px-{number}
Applies padding to both the left and right sides of the element.
CSS equivalent: `padding-left:
{number}px; padding-right: {number}px;`
Example usage:
.py-{number}
.py-{number}
Applies padding to both the top and bottom sides of the element.
CSS equivalent: padding-top: {number}px; padding-bottom: {number}px;
Example usage:
Last updated