I'm currently working on developing some pages using bootstrap. In the form at the bottom, I have three buttons - Save, Cancel, and Commit. The issue I'm facing is that while the left and right buttons are perfectly aligned, the Cancel button is not centered. Can someone please assist me with this? Below is the code snippet:
<div class="row">
<div class="col-12">
<input type="submit" value="Save" class="btn btn-success float-left">
</div>
<div class="col-12 text-center">
<a href="#" class="btn btn-secondary mx-auto">Cancel</a>
</div>
<div class="col-12">
<input type="submit" value="Commit" class="btn btn-success float-right">
</div>
</div>
UPDATE: I tried implementing the first answer provided, but it didn't give me the desired result as shown in the attached output image: After trying the first answer