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:
parent
cfa039d2e0
commit
f15eb7b499
2 changed files with 16 additions and 0 deletions
15
docs/assets/css/bootstrap.css
vendored
15
docs/assets/css/bootstrap.css
vendored
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue