html - Twitter Bootstrap: Drop down menu disappears in mobile view -
the navbar have managed create working fine. however, when collapse navbar re-sizing window disappears try open menu in view. why drop-down menu disappearing in mobile view. doing wrong?
html code:
<nav id="mainnav" 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" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <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 page-scroll" href="#page-top">kirori mal college</a> </div> <!-- collect nav links, forms, , other content toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="true">why recruit? <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">why recruit?</a></li> <li><a href="#">demographics</a></li> <li><a href="#">faculty</a></li> <li><a href="#">academics</a></li> <li><a href="#">alumni</a></li> </ul> </li> <!-- end of nav bar tabs --> </ul> </div> <!-- /.navbar-collapse --> </div> <!-- /.container-fluid --> </nav>
Comments
Post a Comment