Bootstrap includes a wide range of shorthand responsive margin and padding utility classes to modify an element's appearance.
Bootstrap 5 has a wide range of responsive margin and padding utility classes. They work for all breakpoints: xs (<=576px), sm (>=576px), md (>=768px), lg
In bootstrap default there is de logic of margin and padding like: mb-1, mb-2 and so on… Possible nummers are 1 - 5. Where can i expand this
We can use classes like p-1, p-2, , and p-5 to apply padding of different sizes. The number represents the amount of padding in rem units.
I can say Bootstrap 3 doesn't have padding and margin classes. If your legacy still uses bootstrap 3, then it's too bad.
Bootstrap 4 has a wide range of responsive margin and padding utility classes. They work for all breakpoints: xs (<=576px), sm (>=576px), md (>=768px), lg
Margin and padding. Assign responsive-friendly margin or padding values to an element or a subset of its sides with shorthand classes.