I'm currently experimenting with BOOTSTRAP 4 and the navbar
, but the output on my webpage doesn't match what I want to achieve.
https://i.sstatic.net/FnGlv.png
What I want to achieve is shown in the following link:
https://i.sstatic.net/oelsv.png
Here's the code I'm using:
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="pos-f-t">
<div class="collapse" id="navbarToggleExternalContent">
<div class="bg-dark p-4">
<h4 class="text-white">Collapsed content</h4>
<span class="text-muted">Toggleable via the navbar brand.</span>
</div>
</div>
<nav class="navbar navbar-dark bg-dark">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="\">
<h5 class="text-white">
<i class="fab fa-expeditedssl"></i>   CVT</h4>
</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item active">
<a class="nav-link" href="\">HOME
<i class="fas fa-home"></i>
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="\search">SEARCH
<i class="fas fa-search"></i>
</a>
</li>
</ul>
<button class="navbar-toggler ml-auto" type="button" data-toggle="collapse" data-target="#navbarToggleExternalContent" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</nav>
</div>
I've attempted to use the list-inline
class to inline the list items, but it's not working as expected. Can you please provide assistance? Thank you.