Bootstrap 4 has presented me with a challenge where my Buttons are not aligned properly ....https://i.sstatic.net/rViCT.png
To resolve this issue, I took matters into my own hands and wrote some custom CSS
.btn-success, .btn-danger, .btn-primary {
margin-left: 30px;
margin-right: -15px;
}
https://i.sstatic.net/XoZ6Z.png
Html
<div class="row">
<div class="col-xs-12">
<form>
<div class="row ml-auto">
<div class="col-sm-5 form-group">
<label for="name">Name</label>
<input type="text" id="name" class="form-control">
</div>
<div class="col-sm-2 form-group">
<label for="amount">Amount</label>
<input type="number" id="amount" class="form-control">
</div>
</div>
<div class="row">
<div class="col-xs-12">
<button class="btn btn-success" type="submit">Add</button>
<button class="btn btn-danger" type="submit">Delete</button>
<button class="btn btn-primary" type="submit">Clear</button>
</div>
</div>
</form>
</div>
</div>
Despite trying to use bootstrap classes ml-auto and float-right, the alignment issue remains. I am convinced that there must be a better solution to tackle this problem ...