Skip to main content
MybringDesign System

Padding

Spacing inside elements

Assemble combinations of these spacing utilities to add or remove space. You can start with medium — and then increase or decrease as needed. No more magic numbers and pixel nudging, all the elements on your page will line up when you stick to this ratio based scale.

ClassDeclaration
pa0padding: 0;
paxspadding: .25rem;
paspadding: .5rem;
pampadding: 1rem;
palpadding: 2rem;
paxlpadding: 4rem;
ph0padding-left: 0; padding-right: 0;
phxspadding-left: .25rem; padding-right: .25rem;
phspadding-left: .5rem; padding-right: .5rem;
phmpadding-left: 1rem; padding-right: 1rem;
phlpadding-left: 2rem; padding-right: 2rem;
phxlpadding-left: 4rem; padding-right: 4rem;
pv0padding-top: 0; padding-bottom: 0;
pvxspadding-top: .25rem; padding-bottom: .25rem;
pvspadding-top: .5rem; padding-bottom: .5rem;
pvmpadding-top: 1rem; padding-bottom: 1rem;
pvlpadding-top: 2rem; padding-bottom: 2rem;
pvxlpadding-top: 4rem; padding-bottom: 4rem;
pl0padding-left: 0;
plxspadding-left: .25rem;
plspadding-left: .5rem;
plmpadding-left: 1rem;
pllpadding-left: 2rem;
plxlpadding-left: 4rem;
pr0padding-right: 0;
prxspadding-right: .25rem;
prspadding-right: .5rem;
prmpadding-right: 1rem;
prlpadding-right: 2rem;
prxlpadding-right: 4rem;
pb0padding-bottom: 0;
pbxspadding-bottom: .25rem;
pbspadding-bottom: .5rem;
pbmpadding-bottom: 1rem;
pblpadding-bottom: 2rem;
pbxlpadding-bottom: 4rem;
pt0padding-top: 0;
ptxspadding-top: .25rem;
ptspadding-top: .5rem;
ptmpadding-top: 1rem;
ptlpadding-top: 2rem;
ptxlpadding-top: 4rem;
p
padding
a
all
h
horizontal
v
vertical
t
top
r
right
b
bottom
l
left

Learn more about spacing