Left & right align modal footer buttons in Bootstrap 4

后端 未结 9 1172
广开言路
广开言路 2021-01-31 01:21

Bootstrap 4 uses flex-box for it\'s modal footers. If I want two buttons, one on the left and one on the right, how do I get it to work properly?

The code below tries t

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 01:30

    For Bootstrap 4

    We use Spacing, Bootstrap includes a wide range of abbreviated and padded response margin utility classes to modify the appearance of an element. The classes are named using the format {property}{sides}-{size} for xs and {property}{sides}-{breakpoint}-{size} for sm, md, lg, and xl.

    more info here: https://getbootstrap.com/docs/4.1/utilities/spacing/

    
    
    

提交回复
热议问题