How To Disable The Bootstrap 3 Navbar Collapse

Posted by Weston Ganger

I wanted to disable the navbar collapse feature on my bootstrap site.

We can add a few CSS rules to make this work using the normal html markup described on the Bootstrap 3 docs.


.navbar-collapse.collapse{
  display: block !important;
}

.navbar-nav>li, .navbar-nav{
  float: left !important;
}

.navbar-nav.navbar-right:last-child{
  margin-right: -15px !important;
}

.navbar-right{
  float: right !important;
}

Works like a charm.


Related External Links:

Article Topic:Software Development - HTML / CSS

Date:November 13, 2015

Recommended Posts