TL:DR; Is it possible to set a child of min-height:100%
to min-height:100%
?
My #body-container
is a full-width container while my .bg-container
is just a 920px container.
As pen
As snippet
html,
body {
height: 100%;
background-color: black;
}
#body-container {
min-height: 100%;
background-color: red;
}
.bg-container {
width: 920px;
margin: 0 auto;
background-color: blue;
min-height: 100%;
}
<div id="body-container">
<div class="bg-container">
foo bar
</div>
</div>