Skip to main content

Margin

Overview

These classes can be used to add a margin to elements on the screen. A margin is the space between the border of an element and the elements around it. It can be used to create space between elements. As a general rule, there should always be some space between elements to make the project easier to read and interact with.

Classes

ClassDescription
m-0Removes all a margin from the element.
m-1Adds a margin to all sides of the element equal to 0.25rem.
m-2Adds a margin to all sides of the element equal to 0.5rem.
m-3Adds a margin to all sides of the element equal to 0.75rem.
m-4Adds a margin to all sides of the element equal to 1rem.
m-5Adds a margin to all sides of the element equal to 1.25rem.
m-6Adds a margin to all sides of the element equal to 1.5rem.
m-8Adds a margin to all sides of the element equal to 2rem.
m-10Adds a margin to all sides of the element equal to 2.5rem.
m-12Adds a margin to all sides of the element equal to 3rem.
m-16Adds a margin to all sides of the element equal to 4rem.
m-20Adds a margin to all sides of the element equal to 5rem.
m-24Adds a margin to all sides of the element equal to 6rem.
m-32Adds a margin to all sides of the element equal to 8rem.
m-40Adds a margin to all sides of the element equal to 10rem.
m-48Adds a margin to all sides of the element equal to 12rem.
m-56Adds a margin to all sides of the element equal to 14rem.
m-64Adds a margin to all sides of the element equal to 16rem.
ClassDescription
mx-0Removes horizontal a margin from the element.
mx-1Adds horizontal a margin to the element equal to 0.25rem.
mx-2Adds horizontal a margin to the element equal to 0.5rem.
mx-3Adds horizontal a margin to the element equal to 0.75rem.
mx-4Adds horizontal a margin to the element equal to 1rem.
mx-5Adds horizontal a margin to the element equal to 1.25rem.
mx-6Adds horizontal a margin to the element equal to 1.5rem.
mx-8Adds horizontal a margin to the element equal to 2rem.
mx-10Adds horizontal a margin to the element equal to 2.5rem.
mx-12Adds horizontal a margin to the element equal to 3rem.
mx-16Adds horizontal a margin to the element equal to 4rem.
mx-20Adds horizontal a margin to the element equal to 5rem.
mx-24Adds horizontal a margin to the element equal to 6rem.
mx-32Adds horizontal a margin to the element equal to 8rem.
mx-40Adds horizontal a margin to the element equal to 10rem.
mx-48Adds horizontal a margin to the element equal to 12rem.
mx-56Adds horizontal a margin to the element equal to 14rem.
mx-64Adds horizontal a margin to the element equal to 16rem.
ClassDescription
my-0Removes vertical a margin from the element.
my-1Adds vertical a margin to the element equal to 0.25rem.
my-2Adds vertical a margin to the element equal to 0.5rem.
my-3Adds vertical a margin to the element equal to 0.75rem.
my-4Adds vertical a margin to the element equal to 1rem.
my-5Adds vertical a margin to the element equal to 1.25rem.
my-6Adds vertical a margin to the element equal to 1.5rem.
my-8Adds vertical a margin to the element equal to 2rem.
my-10Adds vertical a margin to the element equal to 2.5rem.
my-12Adds vertical a margin to the element equal to 3rem.
my-16Adds vertical a margin to the element equal to 4rem.
my-20Adds vertical a margin to the element equal to 5rem.
my-24Adds vertical a margin to the element equal to 6rem.
my-32Adds vertical a margin to the element equal to 8rem.
my-40Adds vertical a margin to the element equal to 10rem.
my-48Adds vertical a margin to the element equal to 12rem.
my-56Adds vertical a margin to the element equal to 14rem.
my-64Adds vertical a margin to the element equal to 16rem.
ClassDescription
mt-0Removes top a margin from the element.
mt-1Adds top a margin to the element equal to 0.25rem.
mt-2Adds top a margin to the element equal to 0.5rem.
mt-3Adds top a margin to the element equal to 0.75rem.
mt-4Adds top a margin to the element equal to 1rem.
mt-5Adds top a margin to the element equal to 1.25rem.
mt-6Adds top a margin to the element equal to 1.5rem.
mt-8Adds top a margin to the element equal to 2rem.
mt-10Adds top a margin to the element equal to 2.5rem.
mt-12Adds top a margin to the element equal to 3rem.
mt-16Adds top a margin to the element equal to 4rem.
mt-20Adds top a margin to the element equal to 5rem.
mt-24Adds top a margin to the element equal to 6rem.
mt-32Adds top a margin to the element equal to 8rem.
mt-40Adds top a margin to the element equal to 10rem.
mt-48Adds top a margin to the element equal to 12rem.
mt-56Adds top a margin to the element equal to 14rem.
mt-64Adds top a margin to the element equal to 16rem.
ClassDescription
mr-0Removes right a margin from the element.
mr-1Adds right a margin to the element equal to 0.25rem.
mr-2Adds right a margin to the element equal to 0.5rem.
mr-3Adds right a margin to the element equal to 0.75rem.
mr-4Adds right a margin to the element equal to 1rem.
mr-5Adds right a margin to the element equal to 1.25rem.
mr-6Adds right a margin to the element equal to 1.5rem.
mr-8Adds right a margin to the element equal to 2rem.
mr-10Adds right a margin to the element equal to 2.5rem.
mr-12Adds right a margin to the element equal to 3rem.
mr-16Adds right a margin to the element equal to 4rem.
mr-20Adds right a margin to the element equal to 5rem.
mr-24Adds right a margin to the element equal to 6rem.
mr-32Adds right a margin to the element equal to 8rem.
mr-40Adds right a margin to the element equal to 10rem.
mr-48Adds right a margin to the element equal to 12rem.
mr-56Adds right a margin to the element equal to 14rem.
mr-64Adds right a margin to the element equal to 16rem.
ClassDescription
mb-0Removes bottom a margin from the element.
mb-1Adds bottom a margin to the element equal to 0.25rem.
mb-2Adds bottom a margin to the element equal to 0.5rem.
mb-3Adds bottom a margin to the element equal to 0.75rem.
mb-4Adds bottom a margin to the element equal to 1rem.
mb-5Adds bottom a margin to the element equal to 1.25rem.
mb-6Adds bottom a margin to the element equal to 1.5rem.
mb-8Adds bottom a margin to the element equal to 2rem.
mb-10Adds bottom a margin to the element equal to 2.5rem.
mb-12Adds bottom a margin to the element equal to 3rem.
mb-16Adds bottom a margin to the element equal to 4rem.
mb-20Adds bottom a margin to the element equal to 5rem.
mb-24Adds bottom a margin to the element equal to 6rem.
mb-32Adds bottom a margin to the element equal to 8rem.
mb-40Adds bottom a margin to the element equal to 10rem.
mb-48Adds bottom a margin to the element equal to 12rem.
mb-56Adds bottom a margin to the element equal to 14rem.
mb-64Adds bottom a margin to the element equal to 16rem.
ClassDescription
ml-0Removes left a margin from the element.
ml-1Adds left a margin to the element equal to 0.25rem.
ml-2Adds left a margin to the element equal to 0.5rem.
ml-3Adds left a margin to the element equal to 0.75rem.
ml-4Adds left a margin to the element equal to 1rem.
ml-5Adds left a margin to the element equal to 1.25rem.
ml-6Adds left a margin to the element equal to 1.5rem.
ml-8Adds left a margin to the element equal to 2rem.
ml-10Adds left a margin to the element equal to 2.5rem.
ml-12Adds left a margin to the element equal to 3rem.
ml-16Adds left a margin to the element equal to 4rem.
ml-20Adds left a margin to the element equal to 5rem.
ml-24Adds left a margin to the element equal to 6rem.
ml-32Adds left a margin to the element equal to 8rem.
ml-40Adds left a margin to the element equal to 10rem.
ml-48Adds left a margin to the element equal to 12rem.
ml-56Adds left a margin to the element equal to 14rem.
ml-64Adds left a margin to the element equal to 16rem.