<form>
<div class="row mb-3">
<label for="name" class="col-sm2 col-form-label col-form-label-sm">Name</label>
<div class="col-sm-10">
<input type="text" class="form-control form-control-sm" id="name" required>
</div>
</form>
Although it may appear straightforward, I am struggling to make a label display correctly next to an input element. Instead of being positioned alongside the input field, the label consistently shows up above it. This occurs even when utilizing the code example provided on bootstrap.com.
To view the exact example I'm referring to, visit: https://getbootstrap.com/docs/5.0/forms/layout/#horizontal-form
Running Bootstrap version 5.1.3