aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-27 21:20:58 -0800
committerMark Otto <[email protected]>2012-01-27 21:20:58 -0800
commit78120edf728ede35f2338b42ae30fff1bd7f086e (patch)
treef008e65932a39bda3d0c7e385e21a4b0c433226d
parentd0447e9aa54898ea46596e0e2077f33f0dbd1968 (diff)
downloadbootstrap-78120edf728ede35f2338b42ae30fff1bd7f086e.tar.xz
bootstrap-78120edf728ede35f2338b42ae30fff1bd7f086e.zip
add clearfix to control-group for longer labels and any other unforeseen circumstances
-rw-r--r--docs/assets/css/bootstrap.css8
-rw-r--r--less/forms.less1
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 0ad058814..c097c8f58 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -951,6 +951,14 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec
}
.form-horizontal .control-group {
margin-bottom: 18px;
+ *zoom: 1;
+}
+.form-horizontal .control-group:before, .form-horizontal .control-group:after {
+ display: table;
+ content: "";
+}
+.form-horizontal .control-group:after {
+ clear: both;
}
.form-horizontal .control-group > label {
float: left;
diff --git a/less/forms.less b/less/forms.less
index edd416585..b82fcca72 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -505,6 +505,7 @@ select:focus:required:invalid {
// Increase spacing between groups
.control-group {
margin-bottom: @baseLineHeight;
+ .clearfix();
}
// Float the labels left
.control-group > label {