Roberto Sepúlveda Roberto Sepúlveda - 1 year ago 106
CSS Question

How to modify bootstrap3 navbar's responsive dimensions

I am using the bootstrap3 navbar and I'm having this problem when I decrease the screen resolution:

the problem

You can see that because of the number of elements that the navbar has, when I decrease the screen resolution, the elements that are aligned to the right, are passed down.

I need to avoid that, that is, this:

what I need

should occur instead the problem I showed.

The navbar code:

<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<a class="navbar-brand" href="#">Las Holass</a>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Hooola Holaaa!</a></li>
<li><a href="#">holahola</a></li>
<li><a href="#">Hooola hola!</a></li>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-hover" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Holita
<i class="glyphicon glyphicon-user white"></i>
<ul class="dropdown-menu">
<li><a id="login" href="#">Cerrar SesiĆ³n</a></li>
<li><a href="#">Hooola Holas</a></li>
<li><a href="#">hoola holaaa</a></li>
</div><!-- fin navbar-collapse -->
</div><!-- fin container-fluid -->

Is there a way to define the width in pixels from which the toggle-navigation button will appear?

For example, between 0px and 890px.

Answer Source

change the navbar breakpoint from 1000px to the desired breakpoint, where you want navbar to collapse

@media (max-width: 991px) {
  .navbar-header {
      float: none;
  .navbar-left,.navbar-right {
      float: none !important;
  .navbar-toggle {
      display: block;
  .navbar-collapse {
      border-top: 1px solid transparent;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  .navbar-fixed-top {
      top: 0;
      border-width: 0 0 1px;
  .navbar-collapse.collapse {
      display: none!important;
  .navbar-nav {
      float: none!important;
      margin-top: 7.5px;
  .navbar-nav>li {
      float: none;
  .navbar-nav>li>a {
      padding-top: 10px;
      padding-bottom: 10px;
      display:block !important;


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download