I am currently working on creating a form within a full-width fluid layout that consists of 2 columns - the label column and the inputs column.
The issue I'm running into is that due to the wide screens on fluid layouts, the col-2 label appears too large while the col-1 label seems too small.
Is there a method to set a maximum width for the col-form-label column or would I need to develop custom CSS for these columns?
Here's a simple demo: https://codepen.io/seltix/pen/aWgVjR
<div class="formcontainer">
<div class="form-group row">
<label class="col-12 col-lg-2 col-form-label">Label</label>
<div class="col-12 col-lg-10">
<input class="form-control" type="text" value="">
</div>
</div>
<div class="form-group row">
<label class="col-12 col-lg-2 col-form-label">Longer label</label>
<div class="col-12 col-lg-10">
<input class="form-control" type="text" value="">
</div>
</div>
<div class="form-group row">
<label class="col-12 col-lg-2 col-form-label">Longer label (extra)</label>
<div class="col-12 col-lg-10">
<input class="form-control" type="text" value="">
</div>
</div>
</div>
Bootstrap 4 form source: