title: CSS Relative sized header/footer
body: <p>I'm not a CSS expert so I might be missing something obvious. I'm trying to set a relative size header and footer (so that on larger monitors, the header and footer are larger than on smaller screens). To do this, I'm using a percentage height. However, this only works if I set the <code>position</code> to <code>absolute</code>. The problem is, setting it to absolute means that it overlaps the main part of the screen (inbetween the header and footer). Setting it to relative doesn't work since it relies on items being inside the header/footer.
  This is what my header looks like:</p>
  
  <pre><code>.header
  {
      position:absolute;
      top:0px;
      background-color:white;
      width:100%;
  
      height:30%;
  
  }
  </code></pre>
  
  <p>the ASPX page simply contains</p>
  
  <pre><code>&lt;div class="header"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Is there a way to get relatively proportioned header and footers?</p>
  
  <p>Thanks</p>