bradyj
05-28-2003, 08:11 PM
How would you make a box via CSS that would have a flexible height to it in accordance with the page?
For example I would have three boxes:
<div>
<span class="top">content content content</span>
<span class="middle">CONTENT CONTENT CONTENT</span>
<span class="bottom">Content Content Content</span>
</div>
...and the 'middle' and 'bottom' would have a fixed height like:
.middle {
display: block;
height: 350px;
width: 100%;
color: #FFFFFF;
background-color: #000066;
margin: 0px;
padding: 0px;
}
.bottom {
display: block;
height: 23px;
width: 100%;
color: #666666;
background-color: #FFFFFF;
border-top: 1px dotted #333333;
margin: 0px;
padding: 0px;
}
...how would I make a top box that would fill the REMANDER of the page as it is sized and resized that the bottom two boxes did not fill? Similiar to a flexible frame or table height?
For example I would have three boxes:
<div>
<span class="top">content content content</span>
<span class="middle">CONTENT CONTENT CONTENT</span>
<span class="bottom">Content Content Content</span>
</div>
...and the 'middle' and 'bottom' would have a fixed height like:
.middle {
display: block;
height: 350px;
width: 100%;
color: #FFFFFF;
background-color: #000066;
margin: 0px;
padding: 0px;
}
.bottom {
display: block;
height: 23px;
width: 100%;
color: #666666;
background-color: #FFFFFF;
border-top: 1px dotted #333333;
margin: 0px;
padding: 0px;
}
...how would I make a top box that would fill the REMANDER of the page as it is sized and resized that the bottom two boxes did not fill? Similiar to a flexible frame or table height?