I am struggling to center the glyphicon-log-in within the Bootstrap navbar. Currently, it is displaying above the navbar when I try to debug it.
<a class="navbar-brand pull-left" href="/"><img src="images/logo.png" alt="Elunika"></a>
<span class="glyphicon glyphicon-log-in" id="logIcon"></span>
<div class="nav-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav pull-right">
<li class="active">
<a href="#">HOME</a>
</li>
<li>
<a href="#">ABOUT</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> WHO, HOW & WHAT? </a>
<ul class="dropdown-menu">
<li>
<a href="#">WHO WE ARE?</a>
</li>
<li>
<a href="#">WHAT IS IT?</a>
</li>
<li>
<a href="#">HOW IT WORKS?</a>
</li>
</ul>
</li>
<li>
<a href="#">CONTACT US</a>
</li>
</ul>
</div>
The CSS for logIcon is as follows:
#logIcon{
position: absolute;
margin-left:auto;
margin-right:auto;
}
Any assistance with this issue would be greatly appreciated. Thank you in advance.