I have a variety of nested div
elements within a parent div
, set up like this:
#mycontent > div {
width: 14.28%;
}
<div id="myheader">some header content</div>
<div class="container" id="mycontent">
<div class="outerdiv" id="row1">
<div class="cells">Sun</div>
<div class="cells">Mon</div>
<div class="cells">Tue</div>
<div class="cells">Wed</div>
<div class="cells">Thu</div>
<div class="cells">Fri</div>
<div class="cells">Sat</div>
</div>
<div class="outerdiv" id="row6">
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
<div class="cells"></div>
</div>
</div>
<div id="mydetails">extra contents here</div>
What is the best way to style this structure so that both #myheader
and #mycontent
fill 100% of the original viewport, while keeping the #mydetails
at the bottom? Can this even be achieved?