In my extensive form, several fields within the setup encounter the same issue. Specifically, a checkbox below 'contact telephone number' causes the surrounding content to become misaligned. https://i.sstatic.net/8qI8Z.png
My attempts to resolve this by setting margin-bottom
to 0
have only slightly reduced the gap but it remains noticeable.
<div class="form-group">
<label for="contact_tel" style="margin: 0">Contact Telephone Number <span style="color:red;">*</span></label>
<small style="margin: 0"><br>Same as your main telephone number?</small>
<input type="checkbox" name="sameNum">
<input type="text" class="form-control input-sm"/>
</div>
Removing the <br>
places the checkbox on the same line as the label.
I've also tried inserting a placeholder beneath the contact name
field like so:
<small><br> </small>
However, this solution looks quite unsightly https://i.sstatic.net/Rshp8.png
What is the most effective approach to ensure all fields remain properly aligned in the form?