I have this navbar in bootstrap and when i click my hamburger icon it just flickers and open menu then vanish... I cannot understand why really. Feels like i being blind staring at code..
<nav class="navbar navbar-default navbar-static-top">
<div class="navbar-header"> <a class="navbar-brand" rel="home" href="#" title="RAQT">
<img class="img-responsive" style="max-width:100px; margin-top: -7px;" src="http://www.zappbug.com/wp-content/uploads/2013/02/twitter-logo-small.png">
</a>
<a class="navbar-brand navbar-justified" href="#">Stockholm</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navDefault"> <span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div id="navDefault" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#" class="">Bubbles</a>
</li>
<li><a href="#about" class="">About</a>
</li>
<li><a href="#contact" class="">Contact</a>
</li>
</ul>
</div>
</nav>
Below CSS
body {
padding-top:0px;
}
.navbar-brand
{
position: absolute;
width: 100%;
left: 0;
top: 0;
text-align: center;
margin: auto;
}
.navbar-header {
float: none;
}
.navbar-toggle {
display: block;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.navbar-collapse.collapse {
display: none!important;
}
.navbar-nav {
float: none!important;
margin: 7.5px -15px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
Example here http://www.bootply.com/QKMDlXRfP6
After some research I found the answers I need to make it work with the latest Bootstrap 3.3.4
CSS
Bootply example