I am trying to align the elements so that they take up the available space and stay vertically arranged in the same order, but I'm having trouble achieving this.
Is there a way to accomplish this?
Here is my code:
.parent {
border: 1px solid red;
width: 50%;
justify-content: space-evenly;
display: flex;
}
<div class="parent">
<button>one</button>
<button>two</button>
<button>three</button>
</div>
<div class="parent">
<button>one</button>
<button>two</button>
</div>
<div class="parent">
<button>two</button>
<button>three</button>
</div>
<div class="parent">
<button>one</button>
<button>three</button>
</div>
I would like the result to look like: