This CSS
input[type='checkbox'] {
transform: scale( 2 );
margin-right: 1.5em;
border: 1.5px solid black;
}
The HTML
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="mChkCustomer">
<label class="form-check-label" for="mChkCustomer">
This is just a test for a very llllllooooonnnnngggggg label ..................
</label>
</div>
The result looks good on a wide screen
But when the screen is narrow, this is what happen
Question: How can I align the checkbox and label properly?
3
Answers
Try move label instead checkbox
The CSS
You could use flex utility classes and add
display: flex
to parent container, with centered items:demo