fixes #4506: clearfix added to .dl-horizontal to account for empty dd elements

This commit is contained in:
Mark Otto 2012-08-26 23:06:56 -07:00
parent cfa039d2e0
commit f15eb7b499
2 changed files with 16 additions and 0 deletions

View File

@ -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;

View File

@ -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;