This snippet showcases a piece of HTML code.
<div class="col-md-8">
<span class="label">Product Name</span>
<span>
<mat-form-field>
<input matInput formControlName="productName">
</mat-form-field>
</span>
</div>
Here is the corresponding CSS:
.label { width: 180px; } span{ display: inline-block; }
In this particular code, the 'label' class has a fixed width assigned to it while the other span element does not take up the remaining space within col-md-8.