Lesson overview
Spacing utilities are the fastest way to create consistent layout without custom CSS. Bootstrap uses a scale (like 0 to 5) and directions (t, b, s, e, x, y) to control margin and padding.
Learning outcomes
m-* and p-* classes correctlyp-lg-5)ms-auto, mx-auto)Syntax
p-3, pt-2, px-4, py-5m-3, mb-4, ms-2, me-2py-3 py-md-5Example: card spacing
Auto margin examples
Practice tasks
mb-*.lg screens while keeping it compact on mobile.Quick check
px-4 and py-4?ms-auto do in a flex container?Lesson summary
Get the latest course releases and learning insights delivered straight to your inbox each week.
By subscribing you agree to our Privacy Policy and consent to receive updates from SkillNet.