I
I
iOS Dav2016-08-25 20:44:22
Bootstrap
iOS Dav, 2016-08-25 20:44:22

In bootstrap 3, how to make it so that in small (sm) the menu would be displayed as only one button?

Now this only happens in xs. Here is the code:

<div class="row">
        <nav class="navbar navbar-default navbar-inverse">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <div class="collapse navbar-collapse" id="collapse">
             <ul class="nav navbar-nav">
                 <li><a href="#">Главная</a></li>
         <li><a href="#">О сайте</a></li>
         <li><a href="#">Услуги</a></li>
         <li class="active"><a href="#">Портфолио</a></li>
         <li><a href="#">Контакты</a></li>
                </ul>
            </div>
        </nav>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2016-08-25
@Aidosss

go here getbootstrap.com/customize
look for @grid-float-breakpoint
and change to screen-md-min

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question