Linked Questions

Popular Questions

Content height expand between fixed header and fixed footer

Asked by At

I have a fixed header and a fixed footer that should always be visible in the window.

The problem: I would like to have a "main box" expand between the header and the footer. In that main box is the text box the height of that box should be relative to the distance to the header and footer. I think this picture explains better what I'm trying to archive:


The header and footer could also have a fixed height.

<div id="wrapper">
  <div id="header"></div>>
  <div id="main">
  <div id="textbox"></div>
<div id="footer"></div>

Related Questions