As a study of adaptive layout on bootstrap , I want to implement the behavior of the blocks as on the site http://aplle.com in the navigation header. In principle, I can implement it on crutches myself, by experimenting with media queries in my own style sheet. But nevertheless, it is interesting how to do this beautifully, using the classes navbar .
And now the questions.
- If all items are in full screen, implemented as a list, then when creating a menu button, the entire list will be hidden. How to make so that all elements except the left and right would hide?
- How to move the menu button to the left, the apple in the center, and the bag to the right. Only with pens, or are there any already ready bootstrap classes for this? Pens know how to do it. Interested in implementation, using
bootstrap.
- How to move the menu button to the left, the apple in the center, and the bag to the right. Only with pens, or are there any already ready bootstrap classes for this? Pens know how to do it. Interested in implementation, using
My code is:
<header class="navbar navbar-inverse navbar-static-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#responsive-menu"> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse" id="responsive-menu"> <ul class="nav navbar-nav" > <li><a href="#">Apple</a></li> <li><a href="#">Mac</a></li> <li><a href="#">Ipad</a></li> <li><a href="#">Iphone</a></li> <li><a href="#">Watch</a></li> <li><a href="#">TV</a></li> <li><a href="#">Music</a></li> <li><a href="#">Support</a></li> <li><a href="#">Search</a></li> <li><a href="#">Bag</a></li> </ul> </div> </div> </header> As you can see all the elements are hidden, under the button and the button is pressed by default to the right.

