I have a parent section
with a min-height
css of 100%
. The child is a div with height: 100%;
. But the child div does not occupy the whole parent section
What I'm trying to achieve is the child will occupy the space.
html,
body {
height: 100%;
width: 100%;
padding: 0px;
margin: 0px;
}
div {
box-sizing: border-box;
}
.container {
width: 100%;
min-height: 100%;
background-color: red;
}
.content {
width: 100%;
height: 100%;
background-color: blue;
}
<section class="container">
<div class="content">
HEY!
</div>
</section>