html5 - How to make double navbar responsive -


i redesigning website has 2 row responsive navbar , stuck.

@media (min-width: 767px) {  .nav.navbar-nav {  	float: right;  }  }
<div class="navbar navbar-default navbar-fixed-top">    <div class="collapse navbar-collapse ">  <ul class="nav navbar-nav">  <li class="community"><a href="#"><strong>community</strong></a></li>  <li class="global"><a href="#"><strong>global</strong></a></li>    </ul>  </div>    <div class="navbar-header">    <div id="button" type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">  <span class="icon-bar"></span>   <span class="icon-bar"></span>   <span class="icon-bar"></span>   <span class="icon-bar"></span>   <span class="icon-bar"></span>   <span class="icon-bar"></span>  <span class="icon-bar"></span>  </div>    <a class="brand" href="#"><img src="image/oppo_green.png" height="24" width="150" alt=""></a>  </div>    <div class="collapse navbar-collapse">  <ul class="nav navbar-nav">    <li><a href="#"><strong>home</strong></a></li>    <li class="dropdown">  <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong>products</strong></a>  <ul class="dropdown-menu">  <li>smartphones</li>  <li>accessoires</li>  </ul>  </li>    <li><a href="a"><strong>coloros</strong></a></li>     <li class="dropdown">  <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong>about</strong></a>  <ul class="dropdown-menu">  <li>press</li>  </ul>  </li>    <li class="dropdown">  <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong>support</strong></a>   <ul class="dropdown-menu">  <li>faq</li>  <li>contact</li>  </ul>  </li>    <li><a href="#"><strong>stores</strong></a></li>    </ul>  </div>  </div>

if screen wider 767px looks (which looks precisely want (check first image)...but.. when screen smaller 767px (second image), navigation menu looks , not want. "community" , "global" should displayed below under store, how can fix that

i add duplicate menu options, meaning hide first 1 on tablet/phone , show second 1 on tablet/phone, so: (check bottom of second navigation adjustment)

<div class="navbar navbar-default navbar-fixed-top">     <!-- hide nav on tablet/phone ****************************** -->     <div class="collapse navbar-collapse hidden-sm hidden-xs">         <ul class="nav navbar-nav">             <li class="community"><a href="#"><strong>community</strong></a></li>             <li class="global"><a href="#"><strong>global</strong></a></li>             </ul>     </div>         <div class="navbar-header">             <div id="button" type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">             <span class="icon-bar"></span>             <span class="icon-bar"></span>             <span class="icon-bar"></span>             <span class="icon-bar"></span>             <span class="icon-bar"></span>             <span class="icon-bar"></span>             <span class="icon-bar"></span>         </div>             <a class="brand" href="#"><img src="image/oppo_green.png" height="24" width="150" alt=""></a>     </div>      <div class="collapse navbar-collapse">         <ul class="nav navbar-nav">                 <li><a href="#"><strong>home</strong></a></li>                 <li class="dropdown">                 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong>products</strong></a>                 <ul class="dropdown-menu">                     <li>smartphones</li>                     <li>accessoires</li>                 </ul>             </li>                 <li><a href="a"><strong>coloros</strong></a></li>                 <li class="dropdown">                 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong>about</strong></a>                 <ul class="dropdown-menu">                     <li>press</li>                 </ul>             </li>                 <li class="dropdown">                 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><strong>support</strong></a>                 <ul class="dropdown-menu">                     <li>faq</li>                     <li>contact</li>                 </ul>             </li>                 <li><a href="#"><strong>stores</strong></a></li>                <!-- ****************************************************** -->             <li class="visible-sm visible-xs">                 <!-- link here (or dropdown) "community" -->             </li>              <li class="visible-sm visible-xs">                 <!-- link here (or dropdown) "global" -->             </li>          </ul>     </div> </div> 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -