aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-08-26 23:06:56 -0700
committerMark Otto <[email protected]>2012-08-26 23:06:56 -0700
commitf15eb7b499e3afa628b7baba1b02eed4fc079d33 (patch)
tree8a9f6c492e6c43a316d494690b6c33684a02bf40
parentcfa039d2e0aff2bfd25b3cac129d01873f182eba (diff)
downloadbootstrap-f15eb7b499e3afa628b7baba1b02eed4fc079d33.tar.xz
bootstrap-f15eb7b499e3afa628b7baba1b02eed4fc079d33.zip
fixes #4506: clearfix added to .dl-horizontal to account for empty dd elements
-rw-r--r--docs/assets/css/bootstrap.css15
-rw-r--r--less/type.less1
2 files changed, 16 insertions, 0 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index c01aa8c36..c935c084c 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -725,6 +725,21 @@ dd {
margin-left: 10px;
}
+.dl-horizontal {
+ *zoom: 1;
+}
+
+.dl-horizontal:before,
+.dl-horizontal:after {
+ display: table;
+ line-height: 0;
+ content: "";
+}
+
+.dl-horizontal:after {
+ clear: both;
+}
+
.dl-horizontal dt {
float: left;
width: 120px;
diff --git a/less/type.less b/less/type.less
index 58723f788..5557b7e4a 100644
--- a/less/type.less
+++ b/less/type.less
@@ -116,6 +116,7 @@ dd {
}
// Horizontal layout (like forms)
.dl-horizontal {
+ .clearfix(); // Ensure dl clears floats if empty dd elements present
dt {
float: left;
width: 120px;