elkebirmed elkebirmed - 2 months ago 11
Javascript Question

Bootstrap icon-bar not showing

the icon-bar in the navbar menu of Bootstrap not showing when resizing the browser:

http://jsbin.com/ixAqinA/1/

<section class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/">
brand
</a>
</div>
</section>


you can see the JSBin example live: http://jsbin.com/ixAqinA/1/

Answer

You have to wrap it inside

<nav class="navbar navbar-default" role="navigation"></nav>
Comments