Spacing
Padding
p-0 | padding: 0; |
pl-0 | padding-left: 0; |
pr-0 | padding-right: 0; |
pt-0 | padding-top: 0; |
pb-0 | padding-bottom: 0; |
px-0 | padding-left: 0; padding-right: 0; |
py-0 | padding-block: 0; |
p-0.5 | padding: 0.0625rem; /* 1px */ |
pl-0.5 | padding-left: 0.0625rem; /* 1px */ |
pr-0.5 | padding-right: 0.0625rem; /* 1px */ |
pt-0.5 | padding-top: 0.0625rem; /* 1px */ |
pb-0.5 | padding-bottom: 0.0625rem; /* 1px */ |
px-0.5 | padding-left: 0.0625rem; /* 1px */ padding-right: 0.0625rem; /* 1px */ |
py-0.5 | padding-block: 0.0625rem; /* 1px */ |
p-1 | padding: 0.125rem; /* 2px */ |
pl-1 | padding-left: 0.125rem; /* 2px */ |
pr-1 | padding-right: 0.125rem; /* 2px */ |
pt-1 | padding-top: 0.125rem; /* 2px */ |
pb-1 | padding-bottom: 0.125rem; /* 2px */ |
px-1 | padding-left: 0.125rem; /* 2px */ padding-right: 0.125rem; /* 2px */ |
py-1 | padding-block: 0.125rem; /* 2px */ |
p-1.5 | padding: 0.25rem; /* 4px */ |
pl-1.5 | padding-left: 0.25rem; /* 4px */ |
pr-1.5 | padding-right: 0.25rem; /* 4px */ |
pt-1.5 | padding-top: 0.25rem; /* 4px */ |
pb-1.5 | padding-bottom: 0.25rem; /* 4px */ |
px-1.5 | padding-left: 0.25rem; /* 4px */ padding-right: 0.25rem; /* 4px */ |
py-1.5 | padding-block: 0.25rem; /* 4px */ |
p-2 | padding: 0.375rem; /* 6px */ |
pl-2 | padding-left: 0.375rem; /* 6px */ |
pr-2 | padding-right: 0.375rem; /* 6px */ |
pt-2 | padding-top: 0.375rem; /* 6px */ |
pb-2 | padding-bottom: 0.375rem; /* 6px */ |
px-2 | padding-left: 0.375rem; /* 6px */ padding-right: 0.375rem; /* 6px */ |
py-2 | padding-block: 0.375rem; /* 6px */ |
p-2.5 | padding: 0.5rem; /* 8px */ |
pl-2.5 | padding-left: 0.5rem; /* 8px */ |
pr-2.5 | padding-right: 0.5rem; /* 8px */ |
pt-2.5 | padding-top: 0.5rem; /* 8px */ |
pb-2.5 | padding-bottom: 0.5rem; /* 8px */ |
px-2.5 | padding-left: 0.5rem; /* 8px */ padding-right: 0.5rem; /* 8px */ |
py-2.5 | padding-block: 0.5rem; /* 8px */ |
p-3 | padding: 0625rem; /* 10px */ |
pl-3 | padding-left: 0625rem; /* 10px */ |
pr-3 | padding-right: 0625rem; /* 10px */ |
pt-3 | padding-top: 0625rem; /* 10px */ |
pb-3 | padding-bottom: 0625rem; /* 10px */ |
px-3 | padding-left: 0625rem; /* 10px */ padding-right: 0625rem; /* 10px */ |
py-3 | padding-block: 0625rem; /* 10px */ |
p-3.5 | padding: 0.75rem; /* 12px */ |
pl-3.5 | padding-left: 0.75rem; /* 12px */ |
pr-3.5 | padding-right: 0.75rem; /* 12px */ |
pt-3.5 | padding-top: 0.75rem; /* 12px */ |
pb-3.5 | padding-bottom: 0.75rem; /* 12px */ |
px-3.5 | padding-left: 0.75rem; /* 12px */ padding-right: 0.75rem; /* 12px */ |
py-3.5 | padding-block: 0.75rem; /* 12px */ |
p-4 | padding: 0.875rem; /* 14px */ |
pl-4 | padding-left: 0.875rem; /* 14px */ |
pr-4 | padding-right: 0.875rem; /* 14px */ |
pt-4 | padding-top: 0.875rem; /* 14px */ |
pb-4 | padding-bottom: 0.875rem; /* 14px */ |
px-4 | padding-left: 0.875rem; /* 14px */ padding-right: 0.875rem; /* 14px */ |
py-4 | padding-block: 0.875rem; /* 14px */ |
p-5 | padding: 1rem; /* 16px */ |
pl-5 | padding-left: 1rem; /* 16px */ |
pr-5 | padding-right: 1rem; /* 16px */ |
pt-5 | padding-top: 1rem; /* 16px */ |
pb-5 | padding-bottom: 1rem; /* 16px */ |
px-5 | padding-left: 1rem; /* 16px */ padding-right: 1rem; /* 16px */ |
py-5 | padding-block: 1rem; /* 16px */ |
p-6 | padding: 1.25rem; /* 20px */ |
pl-6 | padding-left: 1.25rem; /* 20px */ |
pr-6 | padding-right: 1.25rem; /* 20px */ |
pt-6 | padding-top: 1.25rem; /* 20px */ |
pb-6 | padding-bottom: 1.25rem; /* 20px */ |
px-6 | padding-left: 1.25rem; /* 20px */ padding-right: 1.25rem; /* 20px */ |
py-6 | padding-block: 1.25rem; /* 20px */ |
p-7 | padding: 1.5rem; /* 24px */ |
pl-7 | padding-left: 1.5rem; /* 24px */ |
pr-7 | padding-right: 1.5rem; /* 24px */ |
pt-7 | padding-top: 1.5rem; /* 24px */ |
pb-7 | padding-bottom: 1.5rem; /* 24px */ |
px-7 | padding-left: 1.5rem; /* 24px */ padding-right: 1.5rem; /* 24px */ |
py-7 | padding-block: 1.5rem; /* 24px */ |
p-8 | padding: 1.75rem; /* 28px */ |
pl-8 | padding-left: 1.75rem; /* 28px */ |
pr-8 | padding-right: 1.75rem; /* 28px */ |
pt-8 | padding-top: 1.75rem; /* 28px */ |
pb-8 | padding-bottom: 1.75rem; /* 28px */ |
px-8 | padding-left: 1.75rem; /* 28px */ padding-right: 1.75rem; /* 28px */ |
py-8 | padding-block: 1.75rem; /* 28px */ |
p-9 | padding: 2rem; /* 32px */ |
pl-9 | padding-left: 2rem; /* 32px */ |
pr-9 | padding-right: 2rem; /* 32px */ |
pt-9 | padding-top: 2rem; /* 32px */ |
pb-9 | padding-bottom: 2rem; /* 32px */ |
px-9 | padding-left: 2rem; /* 32px */ padding-right: 2rem; /* 32px */ |
py-9 | padding-block: 2rem; /* 32px */ |
p-10 | padding: 2.25rem; /* 36px */ |
pl-10 | padding-left: 2.25rem; /* 36px */ |
pr-10 | padding-right: 2.25rem; /* 36px */ |
pt-10 | padding-top: 2.25rem; /* 36px */ |
pb-10 | padding-bottom: 2.25rem; /* 36px */ |
px-10 | padding-left: 2.25rem; /* 36px */ padding-right: 2.25rem; /* 36px */ |
py-10 | padding-block: 2.25rem; /* 36px */ |
p-11 | padding: 2.5rem; /* 40px */ |
pl-11 | padding-left: 2.5rem; /* 40px */ |
pr-11 | padding-right: 2.5rem; /* 40px */ |
pt-11 | padding-top: 2.5rem; /* 40px */ |
pb-11 | padding-bottom: 2.5rem; /* 40px */ |
px-11 | padding-left: 2.5rem; /* 40px */ padding-right: 2.5rem; /* 40px */ |
py-11 | padding-block: 2.5rem; /* 40px */ |
p-12 | padding: 2.75rem; /* 44px */ |
pl-12 | padding-left: 2.75rem; /* 44px */ |
pr-12 | padding-right: 2.75rem; /* 44px */ |
pt-12 | padding-top: 2.75rem; /* 44px */ |
pb-12 | padding-bottom: 2.75rem; /* 44px */ |
px-12 | padding-left: 2.75rem; /* 44px */ padding-right: 2.75rem; /* 44px */ |
py-12 | padding-block: 2.75rem; /* 44px */ |
p-14 | padding: 3rem; /* 48px */ |
pl-14 | padding-left: 3rem; /* 48px */ |
pr-14 | padding-right: 3rem; /* 48px */ |
pt-14 | padding-top: 3rem; /* 48px */ |
pb-14 | padding-bottom: 3rem; /* 48px */ |
px-14 | padding-left: 3rem; /* 48px */ padding-right: 3rem; /* 48px */ |
py-14 | padding-block: 3rem; /* 48px */ |
p-16 | padding: 3.25rem; /* 52px */ |
pl-16 | padding-left: 3.25rem; /* 52px */ |
pr-16 | padding-right: 3.25rem; /* 52px */ |
pt-16 | padding-top: 3.25rem; /* 52px */ |
pb-16 | padding-bottom: 3.25rem; /* 52px */ |
px-16 | padding-left: 3.25rem; /* 52px */ padding-right: 3.25rem; /* 52px */ |
py-16 | padding-block: 3.25rem; /* 52px */ |
p-20 | padding: 3.5rem; /* 56px */ |
pl-20 | padding-left: 3.5rem; /* 56px */ |
pr-20 | padding-right: 3.5rem; /* 56px */ |
pt-20 | padding-top: 3.5rem; /* 56px */ |
pb-20 | padding-bottom: 3.5rem; /* 56px */ |
px-20 | padding-left: 3.5rem; /* 56px */ padding-right: 3.5rem; /* 56px */ |
py-20 | padding-block: 3.5rem; /* 56px */ |
p-24 | padding: 3.75rem; /* 60px */ |
pl-24 | padding-left: 3.75rem; /* 60px */ |
pr-24 | padding-right: 3.75rem; /* 60px */ |
pt-24 | padding-top: 3.75rem; /* 60px */ |
pb-24 | padding-bottom: 3.75rem; /* 60px */ |
px-24 | padding-left: 3.75rem; /* 60px */ padding-right: 3.75rem; /* 60px */ |
py-24 | padding-block: 3.75rem; /* 60px */ |
p-28 | padding: 4rem; /* 64px */ |
pl-28 | padding-left: 4rem; /* 64px */ |
pr-28 | padding-right: 4rem; /* 64px */ |
pt-28 | padding-top: 4rem; /* 64px */ |
pb-28 | padding-bottom: 4rem; /* 64px */ |
px-28 | padding-left: 4rem; /* 64px */ padding-right: 4rem; /* 64px */ |
py-28 | padding-block: 4rem; /* 64px */ |
p-32 | padding: 5rem; /* 80px */ |
pl-32 | padding-left: 5rem; /* 80px */ |
pr-32 | padding-right: 5rem; /* 80px */ |
pt-32 | padding-top: 5rem; /* 80px */ |
pb-32 | padding-bottom: 5rem; /* 80px */ |
px-32 | padding-left: 5rem; /* 80px */ padding-right: 5rem; /* 80px */ |
py-32 | padding-block: 5rem; /* 80px */ |
p-36 | padding: 6rem; /* 96px */ |
pl-36 | padding-left: 6rem; /* 96px */ |
pr-36 | padding-right: 6rem; /* 96px */ |
pt-36 | padding-top: 6rem; /* 96px */ |
pb-36 | padding-bottom: 6rem; /* 96px */ |
px-36 | padding-left: 6rem; /* 96px */ padding-right: 6rem; /* 96px */ |
py-36 | padding-block: 6rem; /* 96px */ |
p-40 | padding: 7rem; /* 112px */ |
pl-40 | padding-left: 7rem; /* 112px */ |
pr-40 | padding-right: 7rem; /* 112px */ |
pt-40 | padding-top: 7rem; /* 112px */ |
pb-40 | padding-bottom: 7rem; /* 112px */ |
px-40 | padding-left: 7rem; /* 112px */ padding-right: 7rem; /* 112px */ |
py-40 | padding-block: 7rem; /* 112px */ |
p-44 | padding: 8rem; /* 128px */ |
pl-44 | padding-left: 8rem; /* 128px */ |
pr-44 | padding-right: 8rem; /* 128px */ |
pt-44 | padding-top: 8rem; /* 128px */ |
pb-44 | padding-bottom: 8rem; /* 128px */ |
px-44 | padding-left: 8rem; /* 128px */ padding-right: 8rem; /* 128px */ |
py-44 | padding-block: 8rem; /* 128px */ |
p-48 | padding: 9rem; /* 144px */ |
pl-48 | padding-left: 9rem; /* 144px */ |
pr-48 | padding-right: 9rem; /* 144px */ |
pt-48 | padding-top: 9rem; /* 144px */ |
pb-48 | padding-bottom: 9rem; /* 144px */ |
px-48 | padding-left: 9rem; /* 144px */ padding-right: 9rem; /* 144px */ |
py-48 | padding-block: 9rem; /* 144px */ |
p-52 | padding: 10rem; /* 160px */ |
pl-52 | padding-left: 10rem; /* 160px */ |
pr-52 | padding-right: 10rem; /* 160px */ |
pt-52 | padding-top: 10rem; /* 160px */ |
pb-52 | padding-bottom: 10rem; /* 160px */ |
px-52 | padding-left: 10rem; /* 160px */ padding-right: 10rem; /* 160px */ |
py-52 | padding-block: 10rem; /* 160px */ |
p-56 | padding: 11rem; /* 176px */ |
pl-56 | padding-left: 11rem; /* 176px */ |
pr-56 | padding-right: 11rem; /* 176px */ |
pt-56 | padding-top: 11rem; /* 176px */ |
pb-56 | padding-bottom: 11rem; /* 176px */ |
px-56 | padding-left: 11rem; /* 176px */ padding-right: 11rem; /* 176px */ |
py-56 | padding-block: 11rem; /* 176px */ |
p-60 | padding: 12rem; /* 192px */ |
pl-60 | padding-left: 12rem; /* 192px */ |
pr-60 | padding-right: 12rem; /* 192px */ |
pt-60 | padding-top: 12rem; /* 192px */ |
pb-60 | padding-bottom: 12rem; /* 192px */ |
px-60 | padding-left: 12rem; /* 192px */ padding-right: 12rem; /* 192px */ |
py-60 | padding-block: 12rem; /* 192px */ |
p-64 | padding: 13rem; /* 208px */ |
pl-64 | padding-left: 13rem; /* 208px */ |
pr-64 | padding-right: 13rem; /* 208px */ |
pt-64 | padding-top: 13rem; /* 208px */ |
pb-64 | padding-bottom: 13rem; /* 208px */ |
px-64 | padding-left: 13rem; /* 208px */ padding-right: 13rem; /* 208px */ |
py-64 | padding-block: 13rem; /* 208px */ |
p-72 | padding: 14rem; /* 224px */ |
pl-72 | padding-left: 14rem; /* 224px */ |
pr-72 | padding-right: 14rem; /* 224px */ |
pt-72 | padding-top: 14rem; /* 224px */ |
pb-72 | padding-bottom: 14rem; /* 224px */ |
px-72 | padding-left: 14rem; /* 224px */ padding-left: 14rem; /* 224px */ |
py-72 | padding-block: 14rem; /* 224px */ |
p-80 | padding: 15rem; /* 240px */ |
pl-80 | padding-left: 15rem; /* 240px */ |
pr-80 | padding-right: 15rem; /* 240px */ |
pt-80 | padding-top: 15rem; /* 240px */ |
pb-80 | padding-bottom: 15rem; /* 240px */ |
px-80 | padding-left: 15rem; /* 240px */ padding-right: 15rem; /* 240px */ |
py-80 | padding-block: 15rem; /* 240px */ |
p-88 | padding: 16rem; /* 256px */ |
pl-88 | padding-left: 16rem; /* 256px */ |
pr-88 | padding-right: 16rem; /* 256px */ |
pt-88 | padding-top: 16rem; /* 256px */ |
pb-88 | padding-bottom: 16rem; /* 256px */ |
px-88 | padding-left: 16rem; /* 256px */ padding-right: 16rem; /* 256px */ |
py-88 | padding-block: 16rem; /* 256px */ |
p-96 | padding: 18rem; /* 288px */ |
pl-96 | padding-left: 18rem; /* 288px */ |
pr-96 | padding-right: 18rem; /* 288px */ |
pt-96 | padding-top: 18rem; /* 288px */ |
pb-96 | padding-bottom: 18rem; /* 288px */ |
px-96 | padding-left: 18rem; /* 288px */ padding-right: 18rem; /* 288px */ |
py-96 | padding-block: 18rem; /* 288px */ |
p-104 | padding: 20rem; /* 320px */ |
pl-104 | padding-left: 20rem; /* 320px */ |
pr-104 | padding-right: 20rem; /* 320px */ |
pt-104 | padding-top: 20rem; /* 320px */ |
pb-104 | padding-bottom: 20rem; /* 320px */ |
px-104 | padding-left: 20rem; /* 320px */ padding-right: 20rem; /* 320px */ |
py-104 | padding-block: 20rem; /* 320px */ |
p-112 | padding: 22rem; /* 352px */ |
pl-112 | padding-left: 22rem; /* 352px */ |
pr-112 | padding-right: 22rem; /* 352px */ |
pt-112 | padding-top: 22rem; /* 352px */ |
pb-112 | padding-bottom: 22rem; /* 352px */ |
px-112 | padding-left: 22rem; /* 352px */ padding-right: 22rem; /* 352px */ |
py-112 | padding-block: 22rem; /* 352px */ |
p-120 | padding: 24rem; /* 384px */ |
pl-120 | padding-left: 24rem; /* 384px */ |
pr-120 | padding-right: 24rem; /* 384px */ |
pt-120 | padding-top: 24rem; /* 384px */ |
pb-120 | padding-bottom: 24rem; /* 384px */ |
px-120 | padding-left: 24rem; /* 384px */ padding-right: 24rem; /* 384px */ |
py-120 | padding-block: 24rem; /* 384px */ |
p-128 | padding: 26rem; /* 416px */ |
pl-128 | padding-left: 26rem; /* 416px */ |
pr-128 | padding-right: 26rem; /* 416px */ |
pt-128 | padding-top: 26rem; /* 416px */ |
pb-128 | padding-bottom: 26rem; /* 416px */ |
px-128 | padding-left: 26rem; /* 416px */ padding-right: 26rem; /* 416px */ |
py-128 | padding-block: 26rem; /* 416px */ |
p-136 | padding: 28rem; /* 448px */ |
pl-136 | padding-left: 28rem; /* 448px */ |
pr-136 | padding-right: 28rem; /* 448px */ |
pt-136 | padding-top: 28rem; /* 448px */ |
pb-136 | padding-bottom: 28rem; /* 448px */ |
px-136 | padding-left: 28rem; /* 448px */ padding-right: 28rem; /* 448px */ |
py-136 | padding-block: 28rem; /* 448px */ |
p-144 | padding: 30rem; /* 480px */ |
pl-144 | padding-left: 30rem; /* 480px */ |
pr-144 | padding-right: 30rem; /* 480px */ |
pt-144 | padding-top: 30rem; /* 480px */ |
pb-144 | padding-bottom: 30rem; /* 480px */ |
px-144 | padding-left: 30rem; /* 480px */ padding-right: 30rem; /* 480px */ |
py-144 | padding-block: 30rem; /* 480px */ |
p-152 | padding: 32rem; /* 512px */ |
pl-152 | padding-left: 32rem; /* 512px */ |
pr-152 | padding-right: 32rem; /* 512px */ |
pt-152 | padding-top: 32rem; /* 512px */ |
pb-152 | padding-bottom: 32rem; /* 512px */ |
px-152 | padding-left: 32rem; /* 512px */ padding-right: 32rem; /* 512px */ |
py-152 | padding-block: 32rem; /* 512px */ |
Usage
Use p{arg}-{n} to set the padding for an element of n value.
<button class="py-2 px-4">Click Me</button>
<!--
"py-2" sets padding block to 0.375em (_6px_),
and "px-4" sets padding left & right to 0.875em (_14px_).
-->
Margin
m-0 | margin: 0; |
ml-0 | margin-left: 0; |
mr-0 | margin-right: 0; |
mt-0 | margin-top: 0; |
mb-0 | margin-bottom: 0; |
mx-0 | margin-left: 0; margin-right: 0; |
my-0 | margin-block: 0; |
m-auto | margin: auto; |
ml-auto | margin-left: auto; |
mr-auto | margin-right: auto; |
mt-auto | margin-top: auto; |
mb-auto | margin-bottom: auto; |
mx-auto | margin-left: auto; margin-right: auto; |
my-auto | margin-block: auto; |
m-0.5 | margin: 0.0625rem; /* 1px */ |
ml-0.5 | margin-left: 0.0625rem; /* 1px */ |
mr-0.5 | margin-right: 0.0625rem; /* 1px */ |
mt-0.5 | margin-top: 0.0625rem; /* 1px */ |
mb-0.5 | margin-bottom: 0.0625rem; /* 1px */ |
mx-0.5 | margin-left: 0.0625rem; /* 1px */ margin-right: 0.0625rem; /* 1px */ |
my-0.5 | margin-block: 0.0625rem; /* 1px */ |
m-1 | margin: 0.125rem; /* 2px */ |
ml-1 | margin-left: 0.125rem; /* 2px */ |
mr-1 | margin-right: 0.125rem; /* 2px */ |
mt-1 | margin-top: 0.125rem; /* 2px */ |
mb-1 | margin-bottom: 0.125rem; /* 2px */ |
mx-1 | margin-left: 0.125rem; /* 2px */ margin-right: 0.125rem; /* 2px */ |
my-1 | margin-block: 0.125rem; /* 2px */ |
m-1.5 | margin: 0.25rem; /* 4px */ |
ml-1.5 | margin-left: 0.25rem; /* 4px */ |
mr-1.5 | margin-right: 0.25rem; /* 4px */ |
mt-1.5 | margin-top: 0.25rem; /* 4px */ |
mb-1.5 | margin-bottom: 0.25rem; /* 4px */ |
mx-1.5 | margin-left: 0.25rem; /* 4px */ margin-right: 0.25rem; /* 4px */ |
my-1.5 | margin-block: 0.25rem; /* 4px */ |
m-2 | margin: 0.375rem; /* 6px */ |
ml-2 | margin-left: 0.375rem; /* 6px */ |
mr-2 | margin-right: 0.375rem; /* 6px */ |
mt-2 | margin-top: 0.375rem; /* 6px */ |
mb-2 | margin-bottom: 0.375rem; /* 6px */ |
mx-2 | margin-left: 0.375rem; /* 6px */ margin-right: 0.375rem; /* 6px */ |
my-2 | margin-block: 0.375rem; /* 6px */ |
m-2.5 | margin: 0.5rem; /* 8px */ |
ml-2.5 | margin-left: 0.5rem; /* 8px */ |
mr-2.5 | margin-right: 0.5rem; /* 8px */ |
mt-2.5 | margin-top: 0.5rem; /* 8px */ |
mb-2.5 | margin-bottom: 0.5rem; /* 8px */ |
mx-2.5 | margin-left: 0.5rem; /* 8px */ margin-right: 0.5rem; /* 8px */ |
my-2.5 | margin-block: 0.5rem; /* 8px */ |
m-3 | margin: 0625rem; /* 10px */ |
ml-3 | margin-left: 0625rem; /* 10px */ |
mr-3 | margin-right: 0625rem; /* 10px */ |
mt-3 | margin-top: 0625rem; /* 10px */ |
mb-3 | margin-bottom: 0625rem; /* 10px */ |
mx-3 | margin-left: 0625rem; /* 10px */ margin-right: 0625rem; /* 10px */ |
my-3 | margin-block: 0625rem; /* 10px */ |
m-3.5 | margin: 0.75rem; /* 12px */ |
ml-3.5 | margin-left: 0.75rem; /* 12px */ |
mr-3.5 | margin-right: 0.75rem; /* 12px */ |
mt-3.5 | margin-top: 0.75rem; /* 12px */ |
mb-3.5 | margin-bottom: 0.75rem; /* 12px */ |
mx-3.5 | margin-left: 0.75rem; /* 12px */ margin-right: 0.75rem; /* 12px */ |
my-3.5 | margin-block: 0.75rem; /* 12px */ |
m-4 | margin: 0.875rem; /* 14px */ |
ml-4 | margin-left: 0.875rem; /* 14px */ |
mr-4 | margin-right: 0.875rem; /* 14px */ |
mt-4 | margin-top: 0.875rem; /* 14px */ |
mb-4 | margin-bottom: 0.875rem; /* 14px */ |
mx-4 | margin-left: 0.875rem; /* 14px */ margin-right: 0.875rem; /* 14px */ |
my-4 | margin-block: 0.875rem; /* 14px */ |
m-5 | margin: 1rem; /* 16px */ |
ml-5 | margin-left: 1rem; /* 16px */ |
mr-5 | margin-right: 1rem; /* 16px */ |
mt-5 | margin-top: 1rem; /* 16px */ |
mb-5 | margin-bottom: 1rem; /* 16px */ |
mx-5 | margin-left: 1rem; /* 16px */ margin-right: 1rem; /* 16px */ |
my-5 | margin-block: 1rem; /* 16px */ |
m-6 | margin: 1.25rem; /* 20px */ |
ml-6 | margin-left: 1.25rem; /* 20px */ |
mr-6 | margin-right: 1.25rem; /* 20px */ |
mt-6 | margin-top: 1.25rem; /* 20px */ |
mb-6 | margin-bottom: 1.25rem; /* 20px */ |
mx-6 | margin-left: 1.25rem; /* 20px */ margin-right: 1.25rem; /* 20px */ |
my-6 | margin-block: 1.25rem; /* 20px */ |
m-7 | margin: 1.5rem; /* 24px */ |
ml-7 | margin-left: 1.5rem; /* 24px */ |
mr-7 | margin-right: 1.5rem; /* 24px */ |
mt-7 | margin-top: 1.5rem; /* 24px */ |
mb-7 | margin-bottom: 1.5rem; /* 24px */ |
mx-7 | margin-left: 1.5rem; /* 24px */ margin-right: 1.5rem; /* 24px */ |
my-7 | margin-block: 1.5rem; /* 24px */ |
m-8 | margin: 1.75rem; /* 28px */ |
ml-8 | margin-left: 1.75rem; /* 28px */ |
mr-8 | margin-right: 1.75rem; /* 28px */ |
mt-8 | margin-top: 1.75rem; /* 28px */ |
mb-8 | margin-bottom: 1.75rem; /* 28px */ |
mx-8 | margin-left: 1.75rem; /* 28px */ margin-right: 1.75rem; /* 28px */ |
my-8 | margin-block: 1.75rem; /* 28px */ |
m-9 | margin: 2rem; /* 32px */ |
ml-9 | margin-left: 2rem; /* 32px */ |
mr-9 | margin-right: 2rem; /* 32px */ |
mt-9 | margin-top: 2rem; /* 32px */ |
mb-9 | margin-bottom: 2rem; /* 32px */ |
mx-9 | margin-left: 2rem; /* 32px */ margin-right: 2rem; /* 32px */ |
my-9 | margin-block: 2rem; /* 32px */ |
m-10 | margin: 2.25rem; /* 36px */ |
ml-10 | margin-left: 2.25rem; /* 36px */ |
mr-10 | margin-right: 2.25rem; /* 36px */ |
mt-10 | margin-top: 2.25rem; /* 36px */ |
mb-10 | margin-bottom: 2.25rem; /* 36px */ |
mx-10 | margin-left: 2.25rem; /* 36px */ margin-right: 2.25rem; /* 36px */ |
my-10 | margin-block: 2.25rem; /* 36px */ |
m-11 | margin: 2.5rem; /* 40px */ |
ml-11 | margin-left: 2.5rem; /* 40px */ |
mr-11 | margin-right: 2.5rem; /* 40px */ |
mt-11 | margin-top: 2.5rem; /* 40px */ |
mb-11 | margin-bottom: 2.5rem; /* 40px */ |
mx-11 | margin-left: 2.5rem; /* 40px */ margin-right: 2.5rem; /* 40px */ |
my-11 | margin-block: 2.5rem; /* 40px */ |
m-12 | margin: 2.75rem; /* 44px */ |
ml-12 | margin-left: 2.75rem; /* 44px */ |
mr-12 | margin-right: 2.75rem; /* 44px */ |
mt-12 | margin-top: 2.75rem; /* 44px */ |
mb-12 | margin-bottom: 2.75rem; /* 44px */ |
mx-12 | margin-left: 2.75rem; /* 44px */ margin-right: 2.75rem; /* 44px */ |
my-12 | margin-block: 2.75rem; /* 44px */ |
m-14 | margin: 3rem; /* 48px */ |
ml-14 | margin-left: 3rem; /* 48px */ |
mr-14 | margin-right: 3rem; /* 48px */ |
mt-14 | margin-top: 3rem; /* 48px */ |
mb-14 | margin-bottom: 3rem; /* 48px */ |
mx-14 | margin-left: 3rem; /* 48px */ margin-right: 3rem; /* 48px */ |
my-14 | margin-block: 3rem; /* 48px */ |
m-16 | margin: 3.25rem; /* 52px */ |
ml-16 | margin-left: 3.25rem; /* 52px */ |
mr-16 | margin-right: 3.25rem; /* 52px */ |
mt-16 | margin-top: 3.25rem; /* 52px */ |
mb-16 | margin-bottom: 3.25rem; /* 52px */ |
mx-16 | margin-left: 3.25rem; /* 52px */ margin-right: 3.25rem; /* 52px */ |
my-16 | margin-block: 3.25rem; /* 52px */ |
m-20 | margin: 3.5rem; /* 56px */ |
ml-20 | margin-left: 3.5rem; /* 56px */ |
mr-20 | margin-right: 3.5rem; /* 56px */ |
mt-20 | margin-top: 3.5rem; /* 56px */ |
mb-20 | margin-bottom: 3.5rem; /* 56px */ |
mx-20 | margin-left: 3.5rem; /* 56px */ margin-right: 3.5rem; /* 56px */ |
my-20 | margin-block: 3.5rem; /* 56px */ |
m-24 | margin: 3.75rem; /* 60px */ |
ml-24 | margin-left: 3.75rem; /* 60px */ |
mr-24 | margin-right: 3.75rem; /* 60px */ |
mt-24 | margin-top: 3.75rem; /* 60px */ |
mb-24 | margin-bottom: 3.75rem; /* 60px */ |
mx-24 | margin-left: 3.75rem; /* 60px */ margin-right: 3.75rem; /* 60px */ |
my-24 | margin-block: 3.75rem; /* 60px */ |
m-28 | margin: 4rem; /* 64px */ |
ml-28 | margin-left: 4rem; /* 64px */ |
mr-28 | margin-right: 4rem; /* 64px */ |
mt-28 | margin-top: 4rem; /* 64px */ |
mb-28 | margin-bottom: 4rem; /* 64px */ |
mx-28 | margin-left: 4rem; /* 64px */ margin-right: 4rem; /* 64px */ |
my-28 | margin-block: 4rem; /* 64px */ |
m-32 | margin: 5rem; /* 80px */ |
ml-32 | margin-left: 5rem; /* 80px */ |
mr-32 | margin-right: 5rem; /* 80px */ |
mt-32 | margin-top: 5rem; /* 80px */ |
mb-32 | margin-bottom: 5rem; /* 80px */ |
mx-32 | margin-left: 5rem; /* 80px */ margin-right: 5rem; /* 80px */ |
my-32 | margin-block: 5rem; /* 80px */ |
m-36 | margin: 6rem; /* 96px */ |
ml-36 | margin-left: 6rem; /* 96px */ |
mr-36 | margin-right: 6rem; /* 96px */ |
mt-36 | margin-top: 6rem; /* 96px */ |
mb-36 | margin-bottom: 6rem; /* 96px */ |
mx-36 | margin-left: 6rem; /* 96px */ margin-right: 6rem; /* 96px */ |
my-36 | margin-block: 6rem; /* 96px */ |
m-40 | margin: 7rem; /* 112px */ |
ml-40 | margin-left: 7rem; /* 112px */ |
mr-40 | margin-right: 7rem; /* 112px */ |
mt-40 | margin-top: 7rem; /* 112px */ |
mb-40 | margin-bottom: 7rem; /* 112px */ |
mx-40 | margin-left: 7rem; /* 112px */ margin-right: 7rem; /* 112px */ |
my-40 | margin-block: 7rem; /* 112px */ |
m-44 | margin: 8rem; /* 128px */ |
ml-44 | margin-left: 8rem; /* 128px */ |
mr-44 | margin-right: 8rem; /* 128px */ |
mt-44 | margin-top: 8rem; /* 128px */ |
mb-44 | margin-bottom: 8rem; /* 128px */ |
mx-44 | margin-left: 8rem; /* 128px */ margin-right: 8rem; /* 128px */ |
my-44 | margin-block: 8rem; /* 128px */ |
m-48 | margin: 9rem; /* 144px */ |
ml-48 | margin-left: 9rem; /* 144px */ |
mr-48 | margin-right: 9rem; /* 144px */ |
mt-48 | margin-top: 9rem; /* 144px */ |
mb-48 | margin-bottom: 9rem; /* 144px */ |
mx-48 | margin-left: 9rem; /* 144px */ margin-right: 9rem; /* 144px */ |
my-48 | margin-block: 9rem; /* 144px */ |
m-52 | margin: 10rem; /* 160px */ |
ml-52 | margin-left: 10rem; /* 160px */ |
mr-52 | margin-right: 10rem; /* 160px */ |
mt-52 | margin-top: 10rem; /* 160px */ |
mb-52 | margin-bottom: 10rem; /* 160px */ |
mx-52 | margin-left: 10rem; /* 160px */ margin-right: 10rem; /* 160px */ |
my-52 | margin-block: 10rem; /* 160px */ |
m-56 | margin: 11rem; /* 176px */ |
ml-56 | margin-left: 11rem; /* 176px */ |
mr-56 | margin-right: 11rem; /* 176px */ |
mt-56 | margin-top: 11rem; /* 176px */ |
mb-56 | margin-bottom: 11rem; /* 176px */ |
mx-56 | margin-left: 11rem; /* 176px */ margin-right: 11rem; /* 176px */ |
my-56 | margin-block: 11rem; /* 176px */ |
m-60 | margin: 12rem; /* 192px */ |
ml-60 | margin-left: 12rem; /* 192px */ |
mr-60 | margin-right: 12rem; /* 192px */ |
mt-60 | margin-top: 12rem; /* 192px */ |
mb-60 | margin-bottom: 12rem; /* 192px */ |
mx-60 | margin-left: 12rem; /* 192px */ margin-right: 12rem; /* 192px */ |
my-60 | margin-block: 12rem; /* 192px */ |
m-64 | margin: 13rem; /* 208px */ |
ml-64 | margin-left: 13rem; /* 208px */ |
mr-64 | margin-right: 13rem; /* 208px */ |
mt-64 | margin-top: 13rem; /* 208px */ |
mb-64 | margin-bottom: 13rem; /* 208px */ |
mx-64 | margin-left: 13rem; /* 208px */ margin-right: 13rem; /* 208px */ |
my-64 | margin-block: 13rem; /* 208px */ |
m-72 | margin: 14rem; /* 224px */ |
ml-72 | margin-left: 14rem; /* 224px */ |
mr-72 | margin-right: 14rem; /* 224px */ |
mt-72 | margin-top: 14rem; /* 224px */ |
mb-72 | margin-bottom: 14rem; /* 224px */ |
mx-72 | margin-left: 14rem; /* 224px */ margin-left: 14rem; /* 224px */ |
my-72 | margin-block: 14rem; /* 224px */ |
m-80 | margin: 15rem; /* 240px */ |
ml-80 | margin-left: 15rem; /* 240px */ |
mr-80 | margin-right: 15rem; /* 240px */ |
mt-80 | margin-top: 15rem; /* 240px */ |
mb-80 | margin-bottom: 15rem; /* 240px */ |
mx-80 | margin-left: 15rem; /* 240px */ margin-right: 15rem; /* 240px */ |
my-80 | margin-block: 15rem; /* 240px */ |
m-88 | margin: 16rem; /* 256px */ |
ml-88 | margin-left: 16rem; /* 256px */ |
mr-88 | margin-right: 16rem; /* 256px */ |
mt-88 | margin-top: 16rem; /* 256px */ |
mb-88 | margin-bottom: 16rem; /* 256px */ |
mx-88 | margin-left: 16rem; /* 256px */ margin-right: 16rem; /* 256px */ |
my-88 | margin-block: 16rem; /* 256px */ |
m-96 | margin: 18rem; /* 288px */ |
ml-96 | margin-left: 18rem; /* 288px */ |
mr-96 | margin-right: 18rem; /* 288px */ |
mt-96 | margin-top: 18rem; /* 288px */ |
mb-96 | margin-bottom: 18rem; /* 288px */ |
mx-96 | margin-left: 18rem; /* 288px */ margin-right: 18rem; /* 288px */ |
my-96 | margin-block: 18rem; /* 288px */ |
m-104 | margin: 20rem; /* 320px */ |
ml-104 | margin-left: 20rem; /* 320px */ |
mr-104 | margin-right: 20rem; /* 320px */ |
mt-104 | margin-top: 20rem; /* 320px */ |
mb-104 | margin-bottom: 20rem; /* 320px */ |
mx-104 | margin-left: 20rem; /* 320px */ margin-right: 20rem; /* 320px */ |
my-104 | margin-block: 20rem; /* 320px */ |
m-112 | margin: 22rem; /* 352px */ |
ml-112 | margin-left: 22rem; /* 352px */ |
mr-112 | margin-right: 22rem; /* 352px */ |
mt-112 | margin-top: 22rem; /* 352px */ |
mb-112 | margin-bottom: 22rem; /* 352px */ |
mx-112 | margin-left: 22rem; /* 352px */ margin-right: 22rem; /* 352px */ |
my-112 | margin-block: 22rem; /* 352px */ |
m-120 | margin: 24rem; /* 384px */ |
ml-120 | margin-left: 24rem; /* 384px */ |
mr-120 | margin-right: 24rem; /* 384px */ |
mt-120 | margin-top: 24rem; /* 384px */ |
mb-120 | margin-bottom: 24rem; /* 384px */ |
mx-120 | margin-left: 24rem; /* 384px */ margin-right: 24rem; /* 384px */ |
my-120 | margin-block: 24rem; /* 384px */ |
m-128 | margin: 26rem; /* 416px */ |
ml-128 | margin-left: 26rem; /* 416px */ |
mr-128 | margin-right: 26rem; /* 416px */ |
mt-128 | margin-top: 26rem; /* 416px */ |
mb-128 | margin-bottom: 26rem; /* 416px */ |
mx-128 | margin-left: 26rem; /* 416px */ margin-right: 26rem; /* 416px */ |
my-128 | margin-block: 26rem; /* 416px */ |
m-136 | margin: 28rem; /* 448px */ |
ml-136 | margin-left: 28rem; /* 448px */ |
mr-136 | margin-right: 28rem; /* 448px */ |
mt-136 | margin-top: 28rem; /* 448px */ |
mb-136 | margin-bottom: 28rem; /* 448px */ |
mx-136 | margin-left: 28rem; /* 448px */ margin-right: 28rem; /* 448px */ |
my-136 | margin-block: 28rem; /* 448px */ |
m-144 | margin: 30rem; /* 480px */ |
ml-144 | margin-left: 30rem; /* 480px */ |
mr-144 | margin-right: 30rem; /* 480px */ |
mt-144 | margin-top: 30rem; /* 480px */ |
mb-144 | margin-bottom: 30rem; /* 480px */ |
mx-144 | margin-left: 30rem; /* 480px */ margin-right: 30rem; /* 480px */ |
my-144 | margin-block: 30rem; /* 480px */ |
m-152 | margin: 32rem; /* 512px */ |
ml-152 | margin-left: 32rem; /* 512px */ |
mr-152 | margin-right: 32rem; /* 512px */ |
mt-152 | margin-top: 32rem; /* 512px */ |
mb-152 | margin-bottom: 32rem; /* 512px */ |
mx-152 | margin-left: 32rem; /* 512px */ margin-right: 32rem; /* 512px */ |
my-152 | margin-block: 32rem; /* 512px */ |
Usage
Use m{arg}-{n} to set the margin for an element of n value.
<div class="flex">
<div>Box 1</div>
<div class="ml-12">Box 2</div>
</div>
<!--"ml-12" sets margin left to 2.75rem (_44px_). -->