Spacing

Assign responsive-friendly margin or padding values to an element or a subset of its sides with shorthand classes. Includes support for individual properties, all properties, and vertical and horizontal properties.

Where property is one of:
  • M- for classes that set margin
  • P- for classes that set padding
Where sides is one of:
  • t- for classes that set margin-topor padding-top
  • b- for classes that set margin-bottomor padding-bottom
  • l- for classes that set margin-left or padding-left
  • r- for classes that set margin-rightor padding-right
Where size is one of:
  • 1 (by default) for classes that set themargin or padding to0.5from1to5
Example
<div class="SnMt-3"></div>

API

PropertyClass
Margin Example.SnMt-1
Pading Example.SnPt-1