I can't seem to make min-height work. The main problem is, my child doesn't get height of parent, thus doesn't set its own height. How can i fix this?
#middle_Wrapper {
width: 100%;
min-height: 85vh;
max-height: 500%;
height: auto;
}
#main {
width: 90%;
height: 100%;
background-color: red;
opacity: 0.2;
position: relative;
}
<div id="middle_Wrapper">
<main id="main">
test
</main>
</div>