Bootstrap includes a wide range of shorthand responsive margin and padding utility classes to modify an element’s appearance.
Set margin to 1.
Set margin to 2.
Set margin to 3.
Set margin to 4.
Set margin to 5.
Set margin to auto.
Set margin top to 0.
Set margin top to 1.
Set margin top to 2.
Set margin top to 3.
Set margin top to 4.
Set margin top to 5.
Set margin top to auto.
Set margin bottom to 0.
Set margin bottom to 1.
Set margin bottom to 2.
Set margin bottom to 3.
Set margin bottom to 4.
Set margin bottom to 5.
Set margin bottom to auto.
Set margin left to 0.
Set margin left to 1.
Set margin left to 2.
Set margin left to 3.
Set margin left to 4.
Set margin left to 5.
Set margin left to auto.
Set margin right to 0.
Set margin right to 1.
Set margin right to 2.
Set margin right to 3.
Set margin right to 4.
Set margin right to 5.
Set margin right to auto.
Set margin left and right to 0.
Set margin left and right to 1.
Set margin left and right to 2.
Set margin left and right to 3.
Set margin left and right to 4.
Set margin left and right to 5.
Set margin left and right to auto.
Set margin top and bottom to 0.
Set margin top and bottom to 1.
Set margin top and bottom to 2.
Set margin top and bottom to 3.
Set margin top and bottom to 4.
Set margin top and bottom to 5.
Set margin top and bottom to auto.
Set margin to 0 applicable from breakpoint SM.
Set margin to 1 applicable from breakpoint SM.
Set margin to 2 applicable from breakpoint SM.
Set margin to 3 applicable from breakpoint SM.
Set margin to 4 applicable from breakpoint SM.
Set margin to 5 applicable from breakpoint SM.
Set margin to auto applicable from breakpoint SM.
Set margin top to 0 applicable from breakpoint SM.
Set margin top to 1 applicable from breakpoint SM.
Set margin top to 2 applicable from breakpoint SM.
Set margin top to 3 applicable from breakpoint SM.
Set margin top to 4 applicable from breakpoint SM.
Set margin top to 5 applicable from breakpoint SM.
Set margin top to auto applicable from breakpoint SM.
Set margin bottom to 0 applicable from breakpoint SM.
Set margin bottom to 1 applicable from breakpoint SM.
Set margin bottom to 2 applicable from breakpoint SM.
Set margin bottom to 3 applicable from breakpoint SM.
Set margin bottom to 4 applicable from breakpoint SM.
Set margin bottom to 5 applicable from breakpoint SM.
Set margin bottom to auto applicable from breakpoint SM.
Set margin left to 0 applicable from breakpoint SM.
Set margin left to 1 applicable from breakpoint SM.
Set margin left to 2 applicable from breakpoint SM.
Set margin left to 3 applicable from breakpoint SM.
Set margin left to 4 applicable from breakpoint SM.
Set margin left to 5 applicable from breakpoint SM.
Set margin left to auto applicable from breakpoint SM.
Set margin right to 0 applicable from breakpoint SM.
Set margin right to 1 applicable from breakpoint SM.
Set margin right to 2 applicable from breakpoint SM.
Set margin right to 3 applicable from breakpoint SM.
Set margin right to 4 applicable from breakpoint SM.
Set margin right to 5 applicable from breakpoint SM.
Set margin right to auto applicable from breakpoint SM.
Set margin left and right to 0 applicable from breakpoint SM.
Set margin left and right to 1 applicable from breakpoint SM.
Set margin left and right to 2 applicable from breakpoint SM.
Set margin left and right to 3 applicable from breakpoint SM.
Set margin left and right to 4 applicable from breakpoint SM.
Set margin left and right to 5 applicable from breakpoint SM.
Set margin left and right to auto applicable from breakpoint SM.
Set margin top and bottom to 0 applicable from breakpoint SM.
Set margin top and bottom to 1 applicable from breakpoint SM.
Set margin top and bottom to 2 applicable from breakpoint SM.
Set margin top and bottom to 3 applicable from breakpoint SM.
Set margin top and bottom to 4 applicable from breakpoint SM.
Set margin top and bottom to 5 applicable from breakpoint SM.
Set margin top and bottom to auto applicable from breakpoint SM.
Set margin to 0 applicable from breakpoint MD.
Set margin to 1 applicable from breakpoint MD.
Set margin to 2 applicable from breakpoint MD.
Set margin to 3 applicable from breakpoint MD.
Set margin to 4 applicable from breakpoint MD.
Set margin to 5 applicable from breakpoint MD.
Set margin to auto applicable from breakpoint MD.
Set margin top to 0 applicable from breakpoint MD.
Set margin top to 1 applicable from breakpoint MD.
Set margin top to 2 applicable from breakpoint MD.
Set margin top to 3 applicable from breakpoint MD.
Set margin top to 4 applicable from breakpoint MD.
Set margin top to 5 applicable from breakpoint MD.
Set margin top to auto applicable from breakpoint MD.
Set margin bottom to 0 applicable from breakpoint MD.
Set margin bottom to 1 applicable from breakpoint MD.
Set margin bottom to 2 applicable from breakpoint MD.
Set margin bottom to 3 applicable from breakpoint MD.
Set margin bottom to 4 applicable from breakpoint MD.
Set margin bottom to 5 applicable from breakpoint MD.
Set margin bottom to auto applicable from breakpoint MD.
Set margin left to 0 applicable from breakpoint MD.
Set margin left to 1 applicable from breakpoint MD.
Set margin left to 2 applicable from breakpoint MD.
Set margin left to 3 applicable from breakpoint MD.
Set margin left to 4 applicable from breakpoint MD.
Set margin left to 5 applicable from breakpoint MD.
Set margin left to auto applicable from breakpoint MD.
Set margin right to 0 applicable from breakpoint MD.
Set margin right to 1 applicable from breakpoint MD.
Set margin right to 2 applicable from breakpoint MD.
Set margin right to 3 applicable from breakpoint MD.
Set margin right to 4 applicable from breakpoint MD.
Set margin right to 5 applicable from breakpoint MD.
Set margin right to auto applicable from breakpoint MD.
Set margin left and right to 0 applicable from breakpoint MD.
Set margin left and right to 1 applicable from breakpoint MD.
Set margin left and right to 2 applicable from breakpoint MD.
Set margin left and right to 3 applicable from breakpoint MD.
Set margin left and right to 4 applicable from breakpoint MD.
Set margin left and right to 5 applicable from breakpoint MD.
Set margin left and right to auto applicable from breakpoint MD.
Set margin top and bottom to 0 applicable from breakpoint MD.
Set margin top and bottom to 1 applicable from breakpoint MD.
Set margin top and bottom to 2 applicable from breakpoint MD.
Set margin top and bottom to 3 applicable from breakpoint MD.
Set margin top and bottom to 4 applicable from breakpoint MD.
Set margin top and bottom to 5 applicable from breakpoint MD.
Set margin top and bottom to auto applicable from breakpoint MD.
Set margin to 0 applicable from breakpoint LG.
Set margin to 1 applicable from breakpoint LG.
Set margin to 2 applicable from breakpoint LG.
Set margin to 3 applicable from breakpoint LG.
Set margin to 4 applicable from breakpoint LG.
Set margin to 5 applicable from breakpoint LG.
Set margin to auto applicable from breakpoint LG.
Set margin top to 0 applicable from breakpoint LG.
Set margin top to 1 applicable from breakpoint LG.
Set margin top to 2 applicable from breakpoint LG.
Set margin top to 3 applicable from breakpoint LG.
Set margin top to 4 applicable from breakpoint LG.
Set margin top to 5 applicable from breakpoint LG.
Set margin top to auto applicable from breakpoint LG.
Set margin bottom to 0 applicable from breakpoint LG.
Set margin bottom to 1 applicable from breakpoint LG.
Set margin bottom to 2 applicable from breakpoint LG.
Set margin bottom to 3 applicable from breakpoint LG.
Set margin bottom to 4 applicable from breakpoint LG.
Set margin bottom to 5 applicable from breakpoint LG.
Set margin bottom to auto applicable from breakpoint LG.
Set margin left to 0 applicable from breakpoint LG.
Set margin left to 1 applicable from breakpoint LG.
Set margin left to 2 applicable from breakpoint LG.
Set margin left to 3 applicable from breakpoint LG.
Set margin left to 4 applicable from breakpoint LG.
Set margin left to 5 applicable from breakpoint LG.
Set margin left to auto applicable from breakpoint LG.
Set margin right to 0 applicable from breakpoint LG.
Set margin right to 1 applicable from breakpoint LG.
Set margin right to 2 applicable from breakpoint LG.
Set margin right to 3 applicable from breakpoint LG.
Set margin right to 4 applicable from breakpoint LG.
Set margin right to 5 applicable from breakpoint LG.
Set margin right to auto applicable from breakpoint LG.
Set margin left and right to 0 applicable from breakpoint LG.
Set margin left and right to 1 applicable from breakpoint LG.
Set margin left and right to 2 applicable from breakpoint LG.
Set margin left and right to 3 applicable from breakpoint LG.
Set margin left and right to 4 applicable from breakpoint LG.
Set margin left and right to 5 applicable from breakpoint LG.
Set margin left and right to auto applicable from breakpoint LG.
Set margin top and bottom to 0 applicable from breakpoint LG.
Set margin top and bottom to 1 applicable from breakpoint LG.
Set margin top and bottom to 2 applicable from breakpoint LG.
Set margin top and bottom to 3 applicable from breakpoint LG.
Set margin top and bottom to 4 applicable from breakpoint LG.
Set margin top and bottom to 5 applicable from breakpoint LG.
Set margin top and bottom to auto applicable from breakpoint LG.
Set margin to 0 applicable from breakpoint XL.
Set margin to 1 applicable from breakpoint XL.
Set margin to 2 applicable from breakpoint XL.
Set margin to 3 applicable from breakpoint XL.
Set margin to 4 applicable from breakpoint XL.
Set margin to 5 applicable from breakpoint XL.
Set margin to auto applicable from breakpoint XL.
Set margin top to 0 applicable from breakpoint XL.
Set margin top to 1 applicable from breakpoint XL.
Set margin top to 2 applicable from breakpoint XL.
Set margin top to 3 applicable from breakpoint XL.
Set margin top to 4 applicable from breakpoint XL.
Set margin top to 5 applicable from breakpoint XL.
Set margin top to auto applicable from breakpoint XL.
Set margin bottom to 0 applicable from breakpoint XL.
Set margin bottom to 1 applicable from breakpoint XL.
Set margin bottom to 2 applicable from breakpoint XL.
Set margin bottom to 3 applicable from breakpoint XL.
Set margin bottom to 4 applicable from breakpoint XL.
Set margin bottom to 5 applicable from breakpoint XL.
Set margin bottom to auto applicable from breakpoint XL.
Set margin left to 0 applicable from breakpoint XL.
Set margin left to 1 applicable from breakpoint XL.
Set margin left to 2 applicable from breakpoint XL.
Set margin left to 3 applicable from breakpoint XL.
Set margin left to 4 applicable from breakpoint XL.
Set margin left to 5 applicable from breakpoint XL.
Set margin left to auto applicable from breakpoint XL.
Set margin right to 0 applicable from breakpoint XL.
Set margin right to 1 applicable from breakpoint XL.
Set margin right to 2 applicable from breakpoint XL.
Set margin right to 3 applicable from breakpoint XL.
Set margin right to 4 applicable from breakpoint XL.
Set margin right to 5 applicable from breakpoint XL.
Set margin right to auto applicable from breakpoint XL.
Set margin left and right to 0 applicable from breakpoint XL.
Set margin left and right to 1 applicable from breakpoint XL.
Set margin left and right to 2 applicable from breakpoint XL.
Set margin left and right to 3 applicable from breakpoint XL.
Set margin left and right to 4 applicable from breakpoint XL.
Set margin left and right to 5 applicable from breakpoint XL.
Set margin left and right to auto applicable from breakpoint XL.
Set margin top and bottom to 0 applicable from breakpoint XL.
Set margin top and bottom to 1 applicable from breakpoint XL.
Set margin top and bottom to 2 applicable from breakpoint XL.
Set margin top and bottom to 3 applicable from breakpoint XL.
Set margin top and bottom to 4 applicable from breakpoint XL.
Set margin top and bottom to 5 applicable from breakpoint XL.
Set margin top and bottom to auto applicable from breakpoint XL.
Set padding to 0.
Set padding to 1.
Set padding to 2.
Set padding to 3.
Set padding to 4.
Set padding to 5.
Set padding top to 0.
Set padding top to 1.
Set padding top to 2.
Set padding top to 3.
Set padding top to 4.
Set padding top to 5.
Set padding bottom to 0.
Set padding bottom to 1.
Set padding bottom to 2.
Set padding bottom to 3.
Set padding bottom to 4.
Set padding bottom to 5.
Set padding left to 0.
Set padding left to 1.
Set padding left to 2.
Set padding left to 3.
Set padding left to 4.
Set padding left to 5.
Set padding right to 0.
Set padding right to 1.
Set padding right to 2.
Set padding right to 3.
Set padding right to 4.
Set padding right to 5.
Set padding left and right to 0.
Set padding left and right to 1.
Set padding left and right to 2.
Set padding left and right to 3.
Set padding left and right to 4.
Set padding left and right to 5.
Set padding top and bottom to 0.
Set padding top and bottom to 1.
Set padding top and bottom to 2.
Set padding top and bottom to 3.
Set padding top and bottom to 4.
Set padding top and bottom to 5.
Set padding to 0 applicable from breakpoint SM.
Set padding to 1 applicable from breakpoint SM.
Set padding to 2 applicable from breakpoint SM.
Set padding to 3 applicable from breakpoint SM.
Set padding to 4 applicable from breakpoint SM.
Set padding to 5 applicable from breakpoint SM.
Set padding top to 0 applicable from breakpoint SM.
Set padding top to 1 applicable from breakpoint SM.
Set padding top to 2 applicable from breakpoint SM.
Set padding top to 3 applicable from breakpoint SM.
Set padding top to 4 applicable from breakpoint SM.
Set padding top to 5 applicable from breakpoint SM.
Set padding bottom to 0 applicable from breakpoint SM.
Set padding bottom to 1 applicable from breakpoint SM.
Set padding bottom to 2 applicable from breakpoint SM.
Set padding bottom to 3 applicable from breakpoint SM.
Set padding bottom to 4 applicable from breakpoint SM.
Set padding bottom to 5 applicable from breakpoint SM.
Set padding left to 0 applicable from breakpoint SM.
Set padding left to 1 applicable from breakpoint SM.
Set padding left to 2 applicable from breakpoint SM.
Set padding left to 3 applicable from breakpoint SM.
Set padding left to 4 applicable from breakpoint SM.
Set padding left to 5 applicable from breakpoint SM.
Set padding right to 0 applicable from breakpoint SM.
Set padding right to 1 applicable from breakpoint SM.
Set padding right to 2 applicable from breakpoint SM.
Set padding right to 3 applicable from breakpoint SM.
Set padding right to 4 applicable from breakpoint SM.
Set padding right to 5 applicable from breakpoint SM.
Set padding left and right to 0 applicable from breakpoint SM.
Set padding left and right to 1 applicable from breakpoint SM.
Set padding left and right to 2 applicable from breakpoint SM.
Set padding left and right to 3 applicable from breakpoint SM.
Set padding left and right to 4 applicable from breakpoint SM.
Set padding left and right to 5 applicable from breakpoint SM.
Set padding top and bottom to 0 applicable from breakpoint SM.
Set padding top and bottom to 1 applicable from breakpoint SM.
Set padding top and bottom to 2 applicable from breakpoint SM.
Set padding top and bottom to 3 applicable from breakpoint SM.
Set padding top and bottom to 4 applicable from breakpoint SM.
Set padding top and bottom to 5 applicable from breakpoint SM.
Set padding to 0 applicable from breakpoint MD.
Set padding to 1 applicable from breakpoint MD.
Set padding to 2 applicable from breakpoint MD.
Set padding to 3 applicable from breakpoint MD.
Set padding to 4 applicable from breakpoint MD.
Set padding to 5 applicable from breakpoint MD.
Set padding top to 0 applicable from breakpoint MD.
Set padding top to 1 applicable from breakpoint MD.
Set padding top to 2 applicable from breakpoint MD.
Set padding top to 3 applicable from breakpoint MD.
Set padding top to 4 applicable from breakpoint MD.
Set padding top to 5 applicable from breakpoint MD.
Set padding bottom to 0 applicable from breakpoint MD.
Set padding bottom to 1 applicable from breakpoint MD.
Set padding bottom to 2 applicable from breakpoint MD.
Set padding bottom to 3 applicable from breakpoint MD.
Set padding bottom to 4 applicable from breakpoint MD.
Set padding bottom to 5 applicable from breakpoint MD.
Set padding left to 0 applicable from breakpoint MD.
Set padding left to 1 applicable from breakpoint MD.
Set padding left to 2 applicable from breakpoint MD.
Set padding left to 3 applicable from breakpoint MD.
Set padding left to 4 applicable from breakpoint MD.
Set padding left to 5 applicable from breakpoint MD.
Set padding right to 0 applicable from breakpoint MD.
Set padding right to 1 applicable from breakpoint MD.
Set padding right to 2 applicable from breakpoint MD.
Set padding right to 3 applicable from breakpoint MD.
Set padding right to 4 applicable from breakpoint MD.
Set padding right to 5 applicable from breakpoint MD.
Set padding left and right to 0 applicable from breakpoint MD.
Set padding left and right to 1 applicable from breakpoint MD.
Set padding left and right to 2 applicable from breakpoint MD.
Set padding left and right to 3 applicable from breakpoint MD.
Set padding left and right to 4 applicable from breakpoint MD.
Set padding left and right to 5 applicable from breakpoint MD.
Set padding top and bottom to 0 applicable from breakpoint MD.
Set padding top and bottom to 1 applicable from breakpoint MD.
Set padding top and bottom to 2 applicable from breakpoint MD.
Set padding top and bottom to 3 applicable from breakpoint MD.
Set padding top and bottom to 4 applicable from breakpoint MD.
Set padding top and bottom to 5 applicable from breakpoint MD.
Set padding to 0 applicable from breakpoint LG.
Set padding to 1 applicable from breakpoint LG.
Set padding to 2 applicable from breakpoint LG.
Set padding to 3 applicable from breakpoint LG.
Set padding to 4 applicable from breakpoint LG.
Set padding to 5 applicable from breakpoint LG.
Set padding top to 0 applicable from breakpoint LG.
Set padding top to 1 applicable from breakpoint LG.
Set padding top to 2 applicable from breakpoint LG.
Set padding top to 3 applicable from breakpoint LG.
Set padding top to 4 applicable from breakpoint LG.
Set padding top to 5 applicable from breakpoint LG.
Set padding bottom to 0 applicable from breakpoint LG.
Set padding bottom to 1 applicable from breakpoint LG.
Set padding bottom to 2 applicable from breakpoint LG.
Set padding bottom to 3 applicable from breakpoint LG.
Set padding bottom to 4 applicable from breakpoint LG.
Set padding bottom to 5 applicable from breakpoint LG.
Set padding left to 0 applicable from breakpoint LG.
Set padding left to 1 applicable from breakpoint LG.
Set padding left to 2 applicable from breakpoint LG.
Set padding left to 3 applicable from breakpoint LG.
Set padding left to 4 applicable from breakpoint LG.
Set padding left to 5 applicable from breakpoint LG.
Set padding right to 0 applicable from breakpoint LG.
Set padding right to 1 applicable from breakpoint LG.
Set padding right to 2 applicable from breakpoint LG.
Set padding right to 3 applicable from breakpoint LG.
Set padding right to 4 applicable from breakpoint LG.
Set padding right to 5 applicable from breakpoint LG.
Set padding left and right to 0 applicable from breakpoint LG.
Set padding left and right to 1 applicable from breakpoint LG.
Set padding left and right to 2 applicable from breakpoint LG.
Set padding left and right to 3 applicable from breakpoint LG.
Set padding left and right to 4 applicable from breakpoint LG.
Set padding left and right to 5 applicable from breakpoint LG.
Set padding top and bottom to 0 applicable from breakpoint LG.
Set padding top and bottom to 1 applicable from breakpoint LG.
Set padding top and bottom to 2 applicable from breakpoint LG.
Set padding top and bottom to 3 applicable from breakpoint LG.
Set padding top and bottom to 4 applicable from breakpoint LG.
Set padding top and bottom to 5 applicable from breakpoint LG.
Set padding to 0 applicable from breakpoint XL.
Set padding to 1 applicable from breakpoint XL.
Set padding to 2 applicable from breakpoint XL.
Set padding to 3 applicable from breakpoint XL.
Set padding to 4 applicable from breakpoint XL.
Set padding to 5 applicable from breakpoint XL.
Set padding top to 0 applicable from breakpoint XL.
Set padding top to 1 applicable from breakpoint XL.
Set padding top to 2 applicable from breakpoint XL.
Set padding top to 3 applicable from breakpoint XL.
Set padding top to 4 applicable from breakpoint XL.
Set padding top to 5 applicable from breakpoint XL.
Set padding bottom to 0 applicable from breakpoint XL.
Set padding bottom to 1 applicable from breakpoint XL.
Set padding bottom to 2 applicable from breakpoint XL.
Set padding bottom to 3 applicable from breakpoint XL.
Set padding bottom to 4 applicable from breakpoint XL.
Set padding bottom to 5 applicable from breakpoint XL.
Set padding left to 0 applicable from breakpoint XL.
Set padding left to 1 applicable from breakpoint XL.
Set padding left to 2 applicable from breakpoint XL.
Set padding left to 3 applicable from breakpoint XL.
Set padding left to 4 applicable from breakpoint XL.
Set padding left to 5 applicable from breakpoint XL.
Set padding right to 0 applicable from breakpoint XL.
Set padding right to 1 applicable from breakpoint XL.
Set padding right to 2 applicable from breakpoint XL.
Set padding right to 3 applicable from breakpoint XL.
Set padding right to 4 applicable from breakpoint XL.
Set padding right to 5 applicable from breakpoint XL.
Set padding left and right to 0 applicable from breakpoint XL.
Set padding left and right to 1 applicable from breakpoint XL.
Set padding left and right to 2 applicable from breakpoint XL.
Set padding left and right to 3 applicable from breakpoint XL.
Set padding left and right to 4 applicable from breakpoint XL.
Set padding left and right to 5 applicable from breakpoint XL.
Set padding top and bottom to 0 applicable from breakpoint XL.
Set padding top and bottom to 1 applicable from breakpoint XL.
Set padding top and bottom to 2 applicable from breakpoint XL.
Set padding top and bottom to 3 applicable from breakpoint XL.
Set padding top and bottom to 4 applicable from breakpoint XL.
Set padding top and bottom to 5 applicable from breakpoint XL.
Set margin to 0.