Left & right align modal footer buttons in Bootstrap 4

后端 未结 9 1173
广开言路
广开言路 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条回答
  •  滥情空心
    2021-01-31 01:42

    Totally agree with @Zim and @jmboiton

    If both of these methods are used together, it fixes the issue for everyone (including IE users :P )

    Overall best solution is to combine .justify-content-between and the .mr-auto classes like this:

    
    

    
    
    
    
    
    
    
    
    
    

提交回复
热议问题