Change bootstrap menu according to page width

0

I'm developing a web application and I put in the application the bootstrap menu I would like when the application reaches the maximum width of max-width: 770px the menu would be the same as the menu that is in the normal width of the page.

Menu in normal page width

UPDATE

Menuatmaxwidthof770px

<divclass="body-wrap" >

      <nav class="navbar navbar-inverse" role="navigation" id="azul">
      <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" 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" ></a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
          <div class="conteudo"><li><a href="#">Pagina Principal</a></li></div> 
          <div class="conteudo"> <li><a href="#">Contato</a></li></div>
        <li class="dropdown">
            <div class="conteudo"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Produtos <b class="caret"></b></a></div>
          <ul class="dropdown-menu">
            <li><a href="#">Camisetas</a></li>
             <li class="divider"></li>
            <li><a href="#">Calças</a></li>
             <li class="divider"></li>
            <li><a href="#">Bermudas</a></li>
          </ul>
        </li>
      </ul>




    </div>
    <!-- /.navbar-collapse -->
  </div>
  <!-- /.container-fluid -->
</nav>



 </div>

CSS

@media (max-width: 770px) {

body{

    background-color: yellow;
}


.navbar-header{
    display: none;
}

.nav .navbar-nav{

    display: inline;
}



 }
    
asked by anonymous 10.10.2017 / 23:27

1 answer

-1

You can take this trait out of the code:

<button type="button" class="navbar-toggle" 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>

If you do not want to use the mobile, if you use, maintain and edit the css:

@media screen and (max-width: 770px) {
    .navbar-header{
         ...
    }
}

Conclave take a look at this link where you can work with various types of @media .

    
11.10.2017 / 00:45