Skip to main content

Padding

Overview

These classes can be used to add padding to elements on the screen. Padding is the space between the content of an element and its border. It can be used to create space between elements, improve readability, and create visual interest in the project. As a general rule, there should always be some space between the content of an element and its border to make the element easier to read and interact with.

Classes

ClassDescription
p-0Removes all padding from the element.
p-1Adds padding to all sides of the element equal to 0.25rem.
p-2Adds padding to all sides of the element equal to 0.5rem.
p-3Adds padding to all sides of the element equal to 0.75rem.
p-4Adds padding to all sides of the element equal to 1rem.
p-5Adds padding to all sides of the element equal to 1.25rem.
p-6Adds padding to all sides of the element equal to 1.5rem.
p-8Adds padding to all sides of the element equal to 2rem.
p-10Adds padding to all sides of the element equal to 2.5rem.
p-12Adds padding to all sides of the element equal to 3rem.
p-16Adds padding to all sides of the element equal to 4rem.
p-20Adds padding to all sides of the element equal to 5rem.
p-24Adds padding to all sides of the element equal to 6rem.
p-32Adds padding to all sides of the element equal to 8rem.
p-40Adds padding to all sides of the element equal to 10rem.
p-48Adds padding to all sides of the element equal to 12rem.
p-56Adds padding to all sides of the element equal to 14rem.
p-64Adds padding to all sides of the element equal to 16rem.
ClassDescription
px-0Removes horizontal padding from the element.
px-1Adds horizontal padding to the element equal to 0.25rem.
px-2Adds horizontal padding to the element equal to 0.5rem.
px-3Adds horizontal padding to the element equal to 0.75rem.
px-4Adds horizontal padding to the element equal to 1rem.
px-5Adds horizontal padding to the element equal to 1.25rem.
px-6Adds horizontal padding to the element equal to 1.5rem.
px-8Adds horizontal padding to the element equal to 2rem.
px-10Adds horizontal padding to the element equal to 2.5rem.
px-12Adds horizontal padding to the element equal to 3rem.
px-16Adds horizontal padding to the element equal to 4rem.
px-20Adds horizontal padding to the element equal to 5rem.
px-24Adds horizontal padding to the element equal to 6rem.
px-32Adds horizontal padding to the element equal to 8rem.
px-40Adds horizontal padding to the element equal to 10rem.
px-48Adds horizontal padding to the element equal to 12rem.
px-56Adds horizontal padding to the element equal to 14rem.
px-64Adds horizontal padding to the element equal to 16rem.
ClassDescription
py-0Removes vertical padding from the element.
py-1Adds vertical padding to the element equal to 0.25rem.
py-2Adds vertical padding to the element equal to 0.5rem.
py-3Adds vertical padding to the element equal to 0.75rem.
py-4Adds vertical padding to the element equal to 1rem.
py-5Adds vertical padding to the element equal to 1.25rem.
py-6Adds vertical padding to the element equal to 1.5rem.
py-8Adds vertical padding to the element equal to 2rem.
py-10Adds vertical padding to the element equal to 2.5rem.
py-12Adds vertical padding to the element equal to 3rem.
py-16Adds vertical padding to the element equal to 4rem.
py-20Adds vertical padding to the element equal to 5rem.
py-24Adds vertical padding to the element equal to 6rem.
py-32Adds vertical padding to the element equal to 8rem.
py-40Adds vertical padding to the element equal to 10rem.
py-48Adds vertical padding to the element equal to 12rem.
py-56Adds vertical padding to the element equal to 14rem.
py-64Adds vertical padding to the element equal to 16rem.
ClassDescription
pt-0Removes top padding from the element.
pt-1Adds top padding to the element equal to 0.25rem.
pt-2Adds top padding to the element equal to 0.5rem.
pt-3Adds top padding to the element equal to 0.75rem.
pt-4Adds top padding to the element equal to 1rem.
pt-5Adds top padding to the element equal to 1.25rem.
pt-6Adds top padding to the element equal to 1.5rem.
pt-8Adds top padding to the element equal to 2rem.
pt-10Adds top padding to the element equal to 2.5rem.
pt-12Adds top padding to the element equal to 3rem.
pt-16Adds top padding to the element equal to 4rem.
pt-20Adds top padding to the element equal to 5rem.
pt-24Adds top padding to the element equal to 6rem.
pt-32Adds top padding to the element equal to 8rem.
pt-40Adds top padding to the element equal to 10rem.
pt-48Adds top padding to the element equal to 12rem.
pt-56Adds top padding to the element equal to 14rem.
pt-64Adds top padding to the element equal to 16rem.
ClassDescription
pr-0Removes right padding from the element.
pr-1Adds right padding to the element equal to 0.25rem.
pr-2Adds right padding to the element equal to 0.5rem.
pr-3Adds right padding to the element equal to 0.75rem.
pr-4Adds right padding to the element equal to 1rem.
pr-5Adds right padding to the element equal to 1.25rem.
pr-6Adds right padding to the element equal to 1.5rem.
pr-8Adds right padding to the element equal to 2rem.
pr-10Adds right padding to the element equal to 2.5rem.
pr-12Adds right padding to the element equal to 3rem.
pr-16Adds right padding to the element equal to 4rem.
pr-20Adds right padding to the element equal to 5rem.
pr-24Adds right padding to the element equal to 6rem.
pr-32Adds right padding to the element equal to 8rem.
pr-40Adds right padding to the element equal to 10rem.
pr-48Adds right padding to the element equal to 12rem.
pr-56Adds right padding to the element equal to 14rem.
pr-64Adds right padding to the element equal to 16rem.
ClassDescription
pb-0Removes bottom padding from the element.
pb-1Adds bottom padding to the element equal to 0.25rem.
pb-2Adds bottom padding to the element equal to 0.5rem.
pb-3Adds bottom padding to the element equal to 0.75rem.
pb-4Adds bottom padding to the element equal to 1rem.
pb-5Adds bottom padding to the element equal to 1.25rem.
pb-6Adds bottom padding to the element equal to 1.5rem.
pb-8Adds bottom padding to the element equal to 2rem.
pb-10Adds bottom padding to the element equal to 2.5rem.
pb-12Adds bottom padding to the element equal to 3rem.
pb-16Adds bottom padding to the element equal to 4rem.
pb-20Adds bottom padding to the element equal to 5rem.
pb-24Adds bottom padding to the element equal to 6rem.
pb-32Adds bottom padding to the element equal to 8rem.
pb-40Adds bottom padding to the element equal to 10rem.
pb-48Adds bottom padding to the element equal to 12rem.
pb-56Adds bottom padding to the element equal to 14rem.
pb-64Adds bottom padding to the element equal to 16rem.
ClassDescription
pl-0Removes left padding from the element.
pl-1Adds left padding to the element equal to 0.25rem.
pl-2Adds left padding to the element equal to 0.5rem.
pl-3Adds left padding to the element equal to 0.75rem.
pl-4Adds left padding to the element equal to 1rem.
pl-5Adds left padding to the element equal to 1.25rem.
pl-6Adds left padding to the element equal to 1.5rem.
pl-8Adds left padding to the element equal to 2rem.
pl-10Adds left padding to the element equal to 2.5rem.
pl-12Adds left padding to the element equal to 3rem.
pl-16Adds left padding to the element equal to 4rem.
pl-20Adds left padding to the element equal to 5rem.
pl-24Adds left padding to the element equal to 6rem.
pl-32Adds left padding to the element equal to 8rem.
pl-40Adds left padding to the element equal to 10rem.
pl-48Adds left padding to the element equal to 12rem.
pl-56Adds left padding to the element equal to 14rem.
pl-64Adds left padding to the element equal to 16rem.