diff options
| author | Pete Hopkins <[email protected]> | 2012-01-26 16:02:27 -0500 |
|---|---|---|
| committer | Pete Hopkins <[email protected]> | 2012-01-26 16:14:54 -0500 |
| commit | b9413460afe2bdfac18889953447622d13eb1968 (patch) | |
| tree | af17776ef398f958f341ced9f6f50f25d33b9e8e /lib/forms.less | |
| parent | f76444c8585f3a720e0af2cedd33acddc718b962 (diff) | |
| download | bootstrap-b9413460afe2bdfac18889953447622d13eb1968.tar.xz bootstrap-b9413460afe2bdfac18889953447622d13eb1968.zip | |
Makes inputs and buttons align middle so they line up in all browsers
Diffstat (limited to 'lib/forms.less')
| -rw-r--r-- | lib/forms.less | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/forms.less b/lib/forms.less index b2bd7b8cc..4ee636683 100644 --- a/lib/forms.less +++ b/lib/forms.less @@ -119,7 +119,6 @@ input[type=file] { // Chrome on Linux and Mobile Safari need background-color select { width: 220px; // default input width + 10px of padding that doesn't get applied - vertical-align: baseline; background-color: @white; } @@ -377,9 +376,9 @@ select:focus:required:invalid { } .help-inline { - *position: relative; /* IE6-7 */ - *top: -5px; /* IE6-7 */ - display: inline; + display: inline-block; + margin-bottom: 9px; + vertical-align: middle; padding-left: 5px; } @@ -469,6 +468,7 @@ select:focus:required:invalid { input, textarea, select, + .help-inline, .uneditable-input { display: inline-block; margin-bottom: 0; |
