Skip to content Skip to sidebar Skip to footer

Full Width Input Group On Bootstrap 3.1.0 Navbar

I've got some troubles with bootstrap v3.1.0. I need to get search bar that will fit entire width of the navbar like this (v3.0.3): http://bootply.com/109727 But it feels like the

Solution 1:

This issue is the width:auto on .navbar-form .form-control. You can override this with width: 100% and it should work...

From the 3.1 Docs...

As a heads up, .navbar-form shares much of its code with .form-inline via mixin. Some form controls, like input groups, may require fixed widths to be show up properly within a navbar.

Bootstrap 3.1

.navbar-form.form-control {
    display: inline-block;
    width: auto; /*This is the issue*/vertical-align: middle;
}

Bootstrap 3.0.3

.navbar-form.form-control {
    display: inline-block;
}

Solution 2:

For Bootstrap 3.3.6, I solved it by using:

.navbar-form .input-group .input-group-btn {
    width: 1%;
}

Post a Comment for "Full Width Input Group On Bootstrap 3.1.0 Navbar"