I use a checkbox from the React-Bootstrap library this way:
var checkBtn = ce(bootstrap.Input, {type: "checkbox", label: "Multiplied ",
checked: this.isChecked, id: "multBtn", onClick: this.onChange });
and I would like to have a label on the left side. How can I do this ?
Had answered this in a different post before someone shared this question with me.
I used flex to solve this by changing the row direction.
HTML:
<div class="checkbox">
<label title="">
<input type="checkbox" value="">
Did not perform
</label>
</div>
CSS:
div.checkbox {
display: inline-block;
/*ie7 -- start*/
*display: inline;
zoom: 1;
}
div.checkbox > label {
display: flex;
flex-direction: row-reverse;
}
Output:
JSFiddle: here
You can find my original post/answer here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With