mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-29 08:10:47 +02:00
Set vertical-align on .form-check-input (#29521)
This is a follow-up to #29322, specifically "allowing easy placement of the `.form-check-input` in more places." In my testing in Firefox and Chrome, setting `vertical-align: top` removes the need to add `float-left` to vertically align the checkbox and label text. And doing so does not visually affect examples which do apply `float: left` via nesting in a `.form-check`.
This commit is contained in:
committed by
Martijn Cuppens
parent
460ba061cb
commit
0caed940a5
@@ -18,6 +18,7 @@
|
||||
width: $form-check-input-width;
|
||||
height: $form-check-input-width;
|
||||
margin-top: ($line-height-base - $form-check-input-width) / 2; // line-height minus check height
|
||||
vertical-align: top;
|
||||
background-color: $form-check-input-bg;
|
||||
border: $form-check-input-border;
|
||||
appearance: none;
|
||||
|
Reference in New Issue
Block a user