Set Margin

You can set a margin to an element instantly by using the following utilities classes.

.mg-l-20 (or) .ml-2
.mg-l-40 (or) .ml-4
Media Query Margin

You can also set a margin to a different media query using the following utilities classes.

Class Value
.mg-[breakpoint]-t-[value]
.mg-[breakpoint]-r-[value]
.mg-[breakpoint]-b-[value]
.mg-[breakpoint]-l-[value]

breakpoint: xs | sm | md | lg | xl

value: the margin value (refer to code above)

.mt-[breakpoint]-[value]
.mr-[breakpoint]-[value]
.mb-[breakpoint]-[value]
.ml-[breakpoint]-[value]

breakpoint: xs | sm | md | lg | xl

value: the margin value (refer to code above)

Auto Margin

You can also set a margin to a different media query using the following utilities classes.

Class Value
.mg-t-auto (or) .mt-auto Set a top margin to auto
.mg-r-auto (or) .mr-auto Set a right margin to auto
.mg-b-auto (or) .mb-auto Set a bottom margin to auto
.mg-l-auto (or) .ml-auto Set a left margin to auto
avatar
Reynante

Web Developer

Verified
View Profile
avatar
Joyce Chua

Team Leader

Verified
View Profile