Have a flex container with flex-direction: row. And each of those individual columns are again flex containers with a flex-direction: column.
Have a few form-inputs in the flex row, but when I try to give the Location select a initial flex-basis: 250px, it doesn't work and it applies it vertically.
But, I can't find a way to make it apply it horizontally.
<div class="row">
<div class="column input-container location">
<label for="location">Location</label>
<select name="location">
<option *ngFor="let location of locations" [value]="location.locationId">
{{location.locationName}}
</option>
</select>
</div>
</div>
//styling
.row {
display: flex;
flex-direction: row;
// flex-wrap: wrap;
}
.column {
display: flex;
flex-direction: column;
}
.location select {
flex-basis: 250px;
}
Here's the link to it running in a stackbliz, https://stackblitz.com/edit/angular-vr4cya