mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-06 21:56:42 +02:00
add clearfix to control-group for longer labels and any other unforeseen circumstances
This commit is contained in:
8
docs/assets/css/bootstrap.css
vendored
8
docs/assets/css/bootstrap.css
vendored
@@ -951,6 +951,14 @@ input:focus:required:invalid:focus, textarea:focus:required:invalid:focus, selec
|
|||||||
}
|
}
|
||||||
.form-horizontal .control-group {
|
.form-horizontal .control-group {
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
.form-horizontal .control-group:before, .form-horizontal .control-group:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
.form-horizontal .control-group:after {
|
||||||
|
clear: both;
|
||||||
}
|
}
|
||||||
.form-horizontal .control-group > label {
|
.form-horizontal .control-group > label {
|
||||||
float: left;
|
float: left;
|
||||||
|
@@ -505,6 +505,7 @@ select:focus:required:invalid {
|
|||||||
// Increase spacing between groups
|
// Increase spacing between groups
|
||||||
.control-group {
|
.control-group {
|
||||||
margin-bottom: @baseLineHeight;
|
margin-bottom: @baseLineHeight;
|
||||||
|
.clearfix();
|
||||||
}
|
}
|
||||||
// Float the labels left
|
// Float the labels left
|
||||||
.control-group > label {
|
.control-group > label {
|
||||||
|
Reference in New Issue
Block a user