I'm working on a website utilizing the Twitter-Boostrap framework and I want to position a navbar-toggle button
on the right side of the navigation bar, perfectly centered.
Is there a way to achieve this?
This is what I have attempted so far:
https://i.sstatic.net/DAyjx.jpg
.navbar-default .container {
position: relative;
}
.navbar-default .navbar-toggle {
background-color: #2E8B57;
border: 5px solid #FFFFFF;
box-shadow: 1px 1px 1.5px #FFFFFF;
padding: 8px 10px 8px 10px;
position: absolute;
right: 0;
top: 13px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<!--Container-->
<div class="navbar-header">
<div class="navbar-brand">
<a href="index.html">Food, LLC</a>
</div>
</div>
<!--END Navbar-header -->
<!-- Toggle Button -->
<button type="button" class="navbar-toggle collapsed visible-xs" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- End Container -->
</nav>
<!-- End Navigation -->