I have been attempting to achieve this for two days now without any success. I have tried various codes from other questions posted here, but nothing seems to work. My goal is to have my navbar-brand on the left, some icons in the center, and one icon on the right, all of them collapsible. Despite trying everything, I couldn't get the flexbox to work with the collapsible div. The only solution that got me closer to my goal was:
<nav class="navbar navbar-expand-lg bg-bee navbar-bee justify-content-between" role="navigation">
<a class="navbar-brand" href="#">Brand</a>
<button class="navbar-toggler ml-auto" type="button" data-target="#navegador" data-toggle="collapse" aria-label="Expandir navegador" aria-expanded="false">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-nav">
<a data-toggle="tooltip" data-placement="bottom" title="Buy" class="d-none d-lg-block nav-item nav-link rounded" href="#"><span class="far fa-handshake icon-nav"></span></a>
<a data-toggle="tooltip" title="Sell" class="d-none d-lg-block nav-item nav-link rounded" href="#"><span class="fas fa-hand-holding-usd icon-nav"></span></a>
<a data-toggle="tooltip" title="My Cart" class="d-none d-lg-block nav-item nav-link rounded" href="#"><span class="fas fa-shopping-cart icon-nav"></span></a>
</div>
<div class="navbar-nav">
<form id="form-iSesion" action="procesos.php" method="POST">
<a data-toggle="tooltip" title="Login or Register" id="iSesion" class="d-none d-lg-block nav-item nav-link rounded" href="#"><span class="fas fa-user icon-nav"></span></a>
<input type="hidden" name="menu" value="1">
</form>
</div>
</nav>
Resulting in:
However, when I activate the collapsible navbar, everything becomes disordered again because the container takes up a lot of space, and nothing I've tried fixes it.
If I add a background, you can see how much space it's consuming.
I'm at a loss for what else to attempt; this is driving me crazy.
EDIT: ZimSystem's solution works, but there's an issue. When the items collapse, each one takes up an entire row. I want them to display inline when the menu collapses, possibly by showing all of them horizontally.