πŸ“ͺSpacing

Margin Classes

.mt-{number}

Applies a margin-top to the element.

CSS equivalent: margin-top: {number}px;

Example usage:

<div class="mt-10">This element has a top margin of 10 pixels.</div>

.mb-{number}

Applies a margin-bottom to the element.

CSS equivalent: margin-bottom: {number}px;

Example usage:

<div class="mb-20">This element has a bottom margin of 20 pixels.</div>

.ml-{number}

Applies a margin-left to the element.

CSS equivalent: margin-left: {number}px;

Example usage:


.mr-{number}

Applies a margin-right to the element.

CSS equivalent: margin-right: {number}px;

Example usage:


.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}

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}

Applies a margin to all sides of the element.

CSS equivalent: margin: {number}px;

Example usage:


Padding Classes

.p-{number}

Applies padding to all sides of the element.

CSS equivalent: padding: {number}px;

Example usage:


.pt-{number}

Applies padding to the top side of the element.

CSS equivalent: padding-top: {number}px;

Example usage:


.pb-{number}

Applies padding to the bottom side of the element.

CSS equivalent: padding-bottom: {number}px;

Example usage:


.pl-{number}

Applies padding to the left side of the element.

CSS equivalent: padding-left: {number}px;

Example usage:


.pr-{number}

Applies padding to the right side of the element.

CSS equivalent: padding-right: {number}px;

Example usage:


.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}

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