Struggling to align items on Navbar? Here is my current setup: https://i.sstatic.net/Doc9A.jpg
I'm trying to position the flag image next to the toggler button, only when the screen reaches 992px breakpoint.
It seems like Bootstrap Stylesheet is using justify-content: space-between;
. I've attempted using align-self: flex-end !important;
on both flag and button, as well as trying justify-content-end
.
Check out my Codepen example - https://codepen.io/jvern22/pen/gZjJBN
My Nav code:
<div class="container container-navbar">
<a class="navbar-brand" href="index.php">Website title</a>
<a class="navbar-brand justify-content-end" href="#"><img src="assets/img/spain.png" class="navbar-flag"></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#top-navbar-1" aria-controls="top-navbar-1" aria-expanded="true" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="top-navbar-1">
<ul class="navbar-nav justify-content-end">
<li class="nav-item"><a class="nav-link" href="?page=taketour"><?php echo $lang['nav_takeatour']; ?></a></li>
<li class="nav-item"><a class="nav-link" href="?page=websites"><?php echo $lang['nav_websites']; ?></a></li>
</ul>
</div>
</div>
</nav>