I am a newcomer to Bootstrap 4 and I am in the process of creating a straightforward page with it. Within my navigation bar, I have successfully added a logo and company name on the left side. However, I am encountering difficulty in placing two buttons on the right side of the navigation bar. Despite exploring various suggestions on forums, none of them have seemed to effectively resolve this issue for me.
Shown below is the snippet of my HTML code:
<nav class="navbar bg-avesta-blue">
<div class="row">
<div class="col-sm-12">
<a class="navbar-brand text-light" href="#">
<img src="images/header-logo.png" class="float-left d-inline-block align-top pr-3" alt="">
<h3 class="pt-1">
AVESTA
</h3>
</a>
<div class="float-right text-right">
<a class="btn btn-success btn-lg text-light"><i class="fa fa-usd"></i> Sell Miles</a>
<a class="btn btn-success btn-lg text-light"><i class="fa fa-usd"></i> Sell Miles</a>
</div>
</div>
</div>
To provide you with a visual representation, here is how the current layout appears: From the image, you can see that both buttons are incorrectly aligned to the left instead of the desired position on the right side.