I have two divs in a section which contains dynamic content. The left container contains a list of numbers and the other one list of input fields. I need to prioritize container of input fields if that container stretches out to 600px of height, I need to have that height on my number container and then that element goes into separate scroll if its longer than 600px.
<section>
<div class="numbers">
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
<div>1</div>
</div>
<div class="inputs">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
</div>
</section>
section {
display: flex;
}
.numbers {
margin-right: 50px;
}
.numbers div {
background: black;
height: 20px;
width: 20px;
margin-bottom: 10px;
color: #fff;
}
.inputs {
display: flex;
flex-direction: column;
}
input {
margin-bottom: 20px;
}