flex-basis: 0%;
.flex {
display: flex;
height: 300px; / Set the desired height of the flex container /
align-items: stretch; / Stretch flex items to match the container height /
}
.flex-item {
flex-grow: 1; / Allow flex items to grow and fill the remaining space equally /
}