diff options
| author | Mark Otto <[email protected]> | 2012-08-26 23:06:56 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-08-26 23:06:56 -0700 |
| commit | f15eb7b499e3afa628b7baba1b02eed4fc079d33 (patch) | |
| tree | 8a9f6c492e6c43a316d494690b6c33684a02bf40 | |
| parent | cfa039d2e0aff2bfd25b3cac129d01873f182eba (diff) | |
| download | bootstrap-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.css | 15 | ||||
| -rw-r--r-- | less/type.less | 1 |
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; |
