I'm trying to leave 1 item aligned on the left and 2 items aligned on the right with Bootstrap 4
, I tried to use flexbox
but since there are 3 items I get one in the middle and one on each end, I tried to make the 2 items on the right as a list, but then it is one underneath the other and not next, so I tried to put a inline-list
in their class but no effect.
Finally, I ended up centralizing with padding and margin, but nothing is responsive, and since I'm using bootstrap, it's better to do it, but with the examples I found in documentation I did not get results.
IneedsomethingsimilartothefooterSO,butinsteadofthenameofthelinksIwillusethelogos.
<footerclass="footer-bg">
<div class="footer">
<div class="footer-logo">
<a class="navbar-brand js-scroll" href="#page-top"><img src="img/logo.png" alt="Logotipo"></a>
</div>
<nav class="footer-nav">
<ul>
<li><a href="#sobre"><i class="fab fa-linkedin-in"></i></a></li>
<li><a href="#produtos"><i class="fab fa-instagram"></i></a></li>
</ul>
</nav>
</div>
<hr style="border: 1px solid rgba(77,77,77,0.5)">
<p class="text-center">Copyright © 2019 - Todos os direitos reservados <br>
</p>
EDIT
SOLUTION
Iwasabletosolveusingthebootstrapflexclasses.Followthe flex documentation.
Class used to leave an item on the far left and 2 items on the far right.
<div class="d-flex bd-highlight mb-3">
<div class="mr-auto p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
<div class="p-2 bd-highlight">Flex item</div>
</div>