Left & right align modal footer buttons in Bootstrap 4
Now that the modal-footer is “display:flex” in Bootstrap 4, it would be easiest to use the auto-margins. Use mr-auto on the left button. <div class=”modal-footer”> <button type=”button” class=”btn btn-primary mr-auto”>Save changes</button> <button type=”button” class=”btn btn-secondary” data-dismiss=”modal”>Close</button> </div> Demo Also see: Left align and right align within div in Bootstrap Follow-up to comment “What if I … Read more