html - Navbar not collapsing -


i have these in header rather under body said bootstrap needs jquery run:

<script   src="https://code.jquery.com/jquery-3.1.0.min.js"   integrity="sha256-ccuebr6csya4/9szppfrx3s49m9vuu5bgtijj06wt/s="   crossorigin="anonymous"></script>     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-tc5iqib027qvyjsmfhjomalkfuwvxzxupncja7l2mcwnipg9mgcd8wgnicpd7txa" crossorigin="anonymous"></script>      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> 

and actual navbar part. i'm pretty sure missing can't see i'm doing wrong:

<nav class="navbar navbar-default navbar-fixed-top">     <div class="container-fluid">         <!-- brand , toggle grouped better mobile display -->         <div class="navbar-header">                  <button type="button" class="navbar-toggle collapsed navbar-right " data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">              <span class="sr-only">toggle navigation</span>             <span class="icon-bar"></span>             <span class="icon-bar"></span>             <span class="icon-bar"></span>             </div>           </button>         </div>          <!-- collect nav links, forms, , other content toggling -->         <div class="collapse navbar-collapse navbar-right" id="bs-example-navbar-collapse-1">             <div class="navbar-collapse collapse">                  <ul class="nav navbar-nav">                     <li id="button0"><a href="#landing-page">home</a></li>                     <li id="button1"><a href="#what-we-do">what do</a></li>                     <li  id="button2"><a href="#contact">contact us</a></li>                     </div>                  </ul>             </div>         </div><!-- /.navbar-collapse -->     </div><!-- /.container-fluid --> </nav> 

html unwanted div change html

<nav class="navbar navbar-default navbar-fixed-top">         <div class="container-fluid">             <!-- brand , toggle grouped better mobile display -->             <div class="navbar-header">                 <button type="button" class="navbar-toggle collapsed navbar-right " data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">                      <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>          <!-- collect nav links, forms, , other content toggling -->         <div class="collapse navbar-collapse navbar-right" id="bs-example-navbar-collapse-1">             <div class="navbar-collapse">                 <ul class="nav navbar-nav">                     <li id="button0"><a href="#landing-page">home</a></li>                     <li id="button1"><a href="#what-we-do">what do</a></li>                     <li id="button2"><a href="#contact">contact us</a></li>                  </ul>             </div>         </div>      </nav> 

https://jsfiddle.net/o6p71fko/1/


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -