These spacers are available to use for margins and padding with responsive utility classes. Combine these prefixes with a screen size and spacing scale to use them responsively.
Classname prefix
Related CSS Property
.m-
margin
.mx-
margin-left, margin-right
.my-
margin top, margin bottom
.mt-
margin-top
.mr-
margin-right
.mb-
margin-bottom
.ml-
margin-left
Classname prefix
Related CSS Property
.p-
padding
.px-
padding-left, padding-right
.py-
padding top, padding bottom
.pt-
padding-top
.pr-
padding-right
.pb-
padding-bottom
.pl-
padding-left
Horizontal alignment
Use these classes to horizontally align elements.
Class name
What it does
.mx-auto
Set the left and right margins to auto
.ml-auto
Add margin to left
.mr-auto
Add margin to right
.justify-end-
display: flex; justify-content: flex-end;
.justify-center-
display: flex; justify-content: center;
Vertical alignment
Use these classes to vertically align elements.
Class name
What it does
.v-align-middle
vertical-align: middle;
.v-align-baseline
vertical-align: baseline;
.v-align-bottom
vertical-align: bottom;
.v-align-text-bottom
vertical-align: text-bottom;
.v-align-text-top
vertical-align: text-top;
Display
Use these classes to control the display property.