Why doesn't margin add space inside the box?
Margin adds space outside the element's border, pushing the element away from others. Padding adds space inside the border, pushing content inward. (See render_steps 2 and 3)
💡 Margin = outside space; Padding = inside space.
Why does padding increase the box size but margin does not?
Padding adds space inside the border, increasing the total size of the box. Margin adds space outside, so the box size stays the same but the space around it grows. (See render_steps 2 and 3)
💡 Padding grows box size; margin grows space around box.
Why do some spacing classes have different sizes like p-1, p-2, p-3?
Bootstrap spacing classes use a scale where the number controls the size in rem units. Higher numbers mean more space. (See property_table for examples)
💡 Higher number = bigger space.