diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
index db1cb17783..e47805d37b 100644
--- a/docs/assets/css/docs.css
+++ b/docs/assets/css/docs.css
@@ -348,6 +348,12 @@ body {
.bs-example-control-sizing input[type="text"] + input[type="text"] {
margin-top: 10px;
}
+.bs-example-form {
+ overflow: hidden;
+}
+.bs-example-form .input-group {
+ margin-bottom: 10px;
+}
/* List groups */
.bs-example > .list-group {
diff --git a/docs/css.html b/docs/css.html
index 7cc50602e8..6b6695464d 100644
--- a/docs/css.html
+++ b/docs/css.html
@@ -1516,7 +1516,7 @@ For example, <section>
should be wrapped as inline.
Avoid using <select>
elements here as they cannot be fully styled in WebKit browsers.