Answer the question
In order to leave comments, you need to log in
How to collapse Bootstap navbar at high resolution?
There is this simple menu:
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">My Brand</a>
<a class="close" id="close-nav" data-target="#navbar" data-toggle="collapse">×</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="#">Пункт 1</a></li>
<li><a href="#">Пункт 2</a></li>
<li><a href="#">Пункт 3</a></li>
</ul>
</div><!--/.navbar-collapse -->
</div>
<a class="close" id="close-nav" data-target="#navbar" data-toggle="collapse">×</a>
, which in phone resolution perfectly collapses and expands the block with id="navbar". And at high resolution collapse does not work. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question