Spanne Flex Height

.container {
    display: flex;
    background-color: yellow;
    border: 1px solid red;
    height:100px
}

.main {
    border: 1px solid black;
}
Envious Eland