elkebirmed elkebirmed - 10 months ago 78
Javascript Question

Bootstrap icon-bar not showing

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


<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>
<a href="/">

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

Answer Source

You have to wrap it inside

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