I'm trying to create a layout with bootstrap 4 and for that I got an example of navbar on their site. The problem is that I would like to drop the mobile button on a new line and center, but I'm not getting it, I already used the .text-center, .mx-auto
classes already tried to give a display: block;
but it just will not go.
It's currently like this:
Iwantittolooklikethis:
Code:
<navclass="navbar navbar-toggleable-md navbar-inverse bg-inverse d-flex align-items-center">
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navSuperior" aria-controls="navSuperior" aria-expanded="false">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#"><div id="navLogo">LOGO</div></a>
<div class="collapse navbar-collapse" id="navSuperior">
<div id="navSearch">
<form class="form-inline d-flex p-2">
<input class="form-control" type="text" placeholder="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
<div id="navMenu">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">Disabled</a>
</li>
</ul>
</div>
</div>
</nav>