I am trying to figure out how to position the last child (CVV
) next to the previous one (Expiry
), so they are on the same row:
.form-col-1--cc {
display: flex;
flex: 30%;
flex-direction: column;
text-align: right;
align-items: flex-end;
}
<div class="form-col-1--cc">
<input matInput required class="example-full-width" name="number" card-number>
<input required name="first-name" card-name matInput>
<input matInput required name="expiry" card-expiry placeholder="Expiry">
<input matInput required name="cvv" card-cvc placeholder="CVV">
</div>