I don't know how to limit the height from scroll div without fixing the max-height.
Here is the situation:
<div>
<div class="img-item"><img></div>
<div class="scroll-item"></div>
</div>
I want to limit my scroll-item div to the height of my img-item.
display: flex doesn't work because it gives the height of the heighest div (which is the scroll item)
height:100% and auto don't work neither.
So i have no idea how to do that without fixing the height (ex: 200px).
See example fiddle.
Do you have an idea?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…