Please help me on changing when my nav-bar be collapsed or if there is any method to make it responsive like getting in small size!
that's my code:
<div style="background-color:#e2e2e2; padding-bottom:10px;">
</div>
<div class="container">
<div class="col-lg-10 col-lg-push-1 onhover">
<nav class="navbar-default custom-nav" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav-collapse1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="nav-collapse1" style="padding:0px;">
<ul class="nav nav-pills onhover">
<li class="active"><a class="onhover1" href="#">Home</a></li>
<li><a class="onhover1" href="#">Rooms</a></li>
<li><a class="onhover1" href="#">Events</a></li>
<li><a class="onhover1" href="#">Restraunts</a></li>
<li><a class="onhover1" href="#">Gallery</a></li>
<li><a class="onhover1" href="#">Services</a></li>
<li><a class="onhover1" href="#">About</a></li>
<li><a class="onhover1" href="#">Contact</a></li>
</ul>
</div>
</nav>
</div>
</div>
See Question&Answers more detail:os