Spacing

Utility classes for margin and padding. Fixed steps plus decimal values for the cases where a whole step is too coarse.

Available spacing sizes and their pixel values

View Size Documentation

m--{size} All sides margin
mt--{size} Top margin
mr--{size} Right margin
mb--{size} Bottom margin
ml--{size} Left margin
mx--{size} Horizontal margin
my--{size} Vertical margin
md:my--{size} Size-based example
portrait:mx--{size} Orientation-based example
lg:portrait:mt--{size} Size + Orientation example
p--{size} All sides padding
pt--{size} Top padding
pr--{size} Right padding
pb--{size} Bottom padding
pl--{size} Left padding
px--{size} Horizontal padding
py--{size} Vertical padding
sm:px--{size} Size-based example
portrait:pb--{size} Orientation-based example
md:portrait:pt--{size} Size + Orientation example