Margin and padding helpers follow a predictable scale: m-*, p-*, with sides t/r/b/x/y and breakpoints md:mt-4 style via mt-md-4. Scale runs 0–5 plus auto for margins.
Reading the shorthand
mt-3— margin-top at spacing step 3px-4— horizontal paddingmb-lg-0— remove bottom margin from lg breakpoint up
Same mental model as Tailwind’s p-4 and mt-2, but Bootstrap uses 0–5 tied to $spacer rem values. Review CSS box model if margin collapse surprises you outside utilities.
Self-check
- What is the difference between
mx-autoandmt-auto? - Why prefer spacing utilities over inline styles for vertical rhythm?