Spacing Classes
Spacing classes are the most useful & quick utility classes to kick start.
Spacing system
Padding classes:
Our
paddingclasses starts withpfollowed by an hyphen and then the number. Number is the multiplier of 4. Sop-1ispadding: 4px.And you can use
ptfollowed by an hyphen and the number forpadding-top, same way,pbispadding-bottomprispadding-rightandplispadding-left.Along with these classes, we do have two more types of classes for padding. They are
pxandpy.pxequals topadding-left&padding-right.pyequals topadding-top&padding-bottom. Herexisx-axis, which is horizontal.yisy-axis, which is vertical.
Margin classes:
- Same way, our margin classes starts with
m. But we providemargin-rightandmargin-bottomclasses only. These two margin categories are enough for most of the times. This limitation is to reduce the unused css bloat.