I've been trying to make my nav-items in my ul float right. I've tried many different things, including everything in this thorough answer: Bootstrap 4 align navbar item to the right
The nav item stays stuck left.
I feel, at this point, that I'm missing something obvious? The div class that wraps the list items are newly added, and don't seem to have any effect on how the list item behaves as far as I know. Everything I've tried has also been without those div tags, just for reference.
Curious whether anyone can see a problem here?
.navbar-default {
background-color: white;
}
.navbar {
display: flex;
min-height: 50px;
border-bottom: 1px solid black;
align-items: center;
margin-bottom: 0;
}
.profile-dropdown {
border-radius: 50%;
height: 50px;
width: 50px;
border: 1px solid black;
object-fit: cover;
}
<nav class="navbar navbar-toggleable-md navbar-light bg-faded">
<a class="navbar-brand" href="#">Equilibrium</a>
<!-- If the user is logged in, display a profile icon. -->
<ul class="nav navbar-nav mr-auto">
<li class="nav-item">
<a>
<img src="" class="profile-dropdown" alt="">
</a>
</li>
<li class="nav-item" >
<img src="/assets/glyphicons/user.png" class="profile-dropdown" alt="">
</li>
</ul>
</nav>
I appreciate any help. Thanks.