1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

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;