From 22c4f3d058412eff54642319ad345b48f64e050e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 27 Aug 2012 12:05:15 -0700 Subject: [PATCH] fixes #4718: add vertical-align: middle; to .btn-group to ensure proper alignment next to standard .btn --- docs/assets/css/bootstrap.css | 1 + less/button-groups.less | 1 + less/tests/css-tests.html | 17 +++++++++++++++++ 3 files changed, 19 insertions(+) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 7ef011cec6..0d5a5a6eb3 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3388,6 +3388,7 @@ input[type="submit"].btn.btn-mini { *margin-left: .3em; font-size: 0; white-space: nowrap; + vertical-align: middle; } .btn-group:first-child { diff --git a/less/button-groups.less b/less/button-groups.less index 77496d6ab8..7bd639aac4 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -7,6 +7,7 @@ .btn-group { position: relative; font-size: 0; // remove as part 1 of font-size inline-block hack + vertical-align: middle; // match .btn alignment given font-size hack above white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page) .ie7-restore-left-whitespace(); } diff --git a/less/tests/css-tests.html b/less/tests/css-tests.html index c922f07db3..1ab21f1bf3 100644 --- a/less/tests/css-tests.html +++ b/less/tests/css-tests.html @@ -597,6 +597,23 @@

Forms

+

Buttons and button groups

+
+ + + +
+

Horizontal form errors