0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

account for floated inputs in the .navbar-form

This commit is contained in:
Mark Otto 2012-01-30 08:20:37 -08:00
parent 2d40b07afc
commit 3722c34b50
3 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@ -2429,6 +2429,14 @@ button.btn.small, input[type="submit"].btn.small {
}
.navbar-form {
margin-bottom: 0;
*zoom: 1;
}
.navbar-form:before, .navbar-form:after {
display: table;
content: "";
}
.navbar-form:after {
clear: both;
}
.navbar-form input, .navbar-form select {
display: inline-block;

View File

@ -88,6 +88,7 @@
// Navbar forms
.navbar-form {
margin-bottom: 0; // remove default bottom margin
.clearfix();
input,
select {
display: inline-block;