I am working on an angular form where I have many label input field combination. I got the label and input file styled with inline block so they are rendering on the same row. I want to float or pull the label to the far left while the input field control is float or pull to the far right. I tried a few CSS changes but no success so far, any help is appreciated.
.input-w label, .input-w select {
float:none;
display: inline-block;
vertical-align: middle;
}
.label {
padding: 0.21em 0.4em 0.2em;
box-shadow: none;
}
<form [formGroup]="myForm">
<div class="row">
<div class="col">
<div class="input-w label">
<label for="dropdown1" class="form-inline">Options: </label>
<select formControlName="dropdown1" class="form-control form-line">
<option *ngFor="let option of Options"
[ngValue]="option.value">
{{option.display}}
</option>
</select>
</div>
</div>
</div>
</form>