I'm having trouble getting min-height to work properly. The issue is that my child element doesn't inherit the height of its parent, so it's not setting its own height correctly. How can I resolve 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>