From a82ca0f9e1711b32f7c07e23ea1e23dd253cd21e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 5 Aug 2013 11:47:12 -0700 Subject: Fixes #8795, a reoccurence of #1969 --- less/forms.less | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index 027131b3b..5b80d6046 100644 --- a/less/forms.less +++ b/less/forms.less @@ -290,10 +290,20 @@ textarea { .checkbox { display: inline-block; } + + // Remove default margin on radios/checkboxes that were used for stacking, and + // then undo the floating of radios and checkboxes to match (which also avoids + // a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969). .radio, .checkbox { margin-top: 0; margin-bottom: 0; + padding-left: 0; + } + .radio input[type="radio"], + .checkbox input[type="checkbox"] { + float: none; + margin-left: 0; } } -- cgit v1.2.3