navbar - Bootstrap- My bootstrap menu is not switching to collapsed menu once the screen size is reduced? -


<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>  <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />    <body id="<?php echo ($itemid ? 'itemid-' . $itemid : ''); ?>">    <div id="wrapper" class="container-fluid">      <!-- begin navbar-->      <?php if ($this->countmodules('position-9')): ?>      <div class="navbar">        <div class="navbar-inner">          <div class="container-fluid">            <div class="row">              <div class="col-sm-2" <div>                <img src="http://i57.tinypic.com/206d2l4.png" style="width:104px;height:110px;">              </div>              <div class="col-sm-10">                <div class="nav-collapse collapse">                  <jdoc:include type="modules" name="position-9" style="none" />                </div>              </div>            </div>          </div>          <!--end navbar-->        </div>

the menu does'nt gets collapsed once screen size reduced. menu items goes underneath each other rather going collasped menu.

your html broken

 <div class="row">     <div class="col-sm-2"          <div> 

you need close div first


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -