title: How do I get ‘footer’ content on a master page to push down when main content doesn't fill a page
body: <p>I have the following code for my masterpage:</p>
  
  <pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %&gt;
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server" style="position:relative"&gt;
      &lt;title&gt;Masterpage&lt;/title&gt;
      &lt;asp:ContentPlaceHolder id="head" runat="server"&gt;
      &lt;/asp:ContentPlaceHolder&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="main" runat="server" style="position:relative"&gt;
      &lt;div&gt;
          &lt;asp:ContentPlaceHolder id="MainContent" runat="server"&gt;
          &lt;/asp:ContentPlaceHolder&gt;
      &lt;/div&gt;
      &lt;/form&gt;
      &lt;br style="clear:both" /&gt;
      &lt;form id="footer" style="position:relative"&gt;
      &lt;div&gt;
          &lt;center style="font-size:small"&gt;Footer content&lt;/center&gt;
      &lt;/div&gt;    
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My problem is that when the MainContent isn't filling up the page the footer is not at the bottom of the page. Is there a way to force the footer to stay on the bottom of the page if the main content isn't pushing it all the way down? When the main content is "big" enough it pushes the footer down with the content and displays on the bottom when scrolling down, but not if it is to small.</p>
  
  <p>Anybody know how to fix this?</p>