I want the textarea to be stretchable in height. But the fixed (max-)height
prevents this.
I thought the overflow-y: scroll;
would fix this, but as you can see in the snippet, it doesn't.
Why doesn't the textarea stretches and why won't the button go down behind the border?
div {
display: flex;
flex-direction: column;
width: 400px;
max-height: 70px;
overflow-y: scroll;
border: 1px solid red;
}
<div>
<textarea></textarea>
<button>Save</button>
</div>