From 58dd1f20aeee82d29693f731844a00cb9c5e4328 Mon Sep 17 00:00:00 2001 From: Mark Otto <markotto@twitter.com> Date: Mon, 20 Aug 2012 12:20:22 -0700 Subject: [PATCH] fix vertical button-groups in ie7 --- docs/assets/css/bootstrap.css | 4 ++++ less/button-groups.less | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 364509ecae..20a43ccbdc 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3516,6 +3516,10 @@ input[type="submit"].btn.btn-mini { .btn-group-vertical { display: inline-block; + *display: inline; + /* IE7 inline-block hack */ + + *zoom: 1; } .btn-group-vertical .btn { diff --git a/less/button-groups.less b/less/button-groups.less index 3197cb394d..01baebd541 100644 --- a/less/button-groups.less +++ b/less/button-groups.less @@ -214,6 +214,7 @@ .btn-group-vertical { display: inline-block; // makes buttons only take up the width they need + .ie7-inline-block(); } .btn-group-vertical .btn { display: block; -- GitLab