master page layout
<p>Hey this is my first post and I am a beginner with asp.net.  I am having trouble working with a master page.  I have a website with six pages and one master page for all, four of the pages the layout is perfect and for two of the pages it puts the footer to high (in the middle of the page).  All the pages are the same length so I am not sure why it is doing that.  Has anyone encountered this problem before?  </p>

<p>Here is the code from the master page. </p>

<pre><code>&lt;%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %&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 id="Head1" runat="server"&gt;
&lt;title&gt;&lt;/title&gt;

&lt;asp:ContentPlaceHolder ID="HeadContent" runat="server"&gt;
&lt;/asp:ContentPlaceHolder&gt;
&lt;style type="text/css"&gt;
    .menu
    {
        background-color: #FFFF00;
    }
    .hideSkiplink
    {
        background-color: #FFFF00;
        width: 1260px;
        height: 23px;
    }
    .footer
    {
        background-color: #FFFF00;
        width: 1257px;
        height: 23px;
        margin-top: 33px;
    }
    .main
    {
        width: 726px;
        height: 709px;
        margin-top: 49px;
        margin-bottom: 38px;
    }
   &lt;/style&gt;
 &lt;/head&gt;
&lt;body&gt;
  &lt;form id="Form1" runat="server"&gt;
&lt;div class="page"&gt;
    &lt;div class="header"&gt;
        &lt;div class="title"&gt;
            &lt;h1 style="width: 1255px"&gt;
                &amp;nbsp;&lt;asp:Label ID="lblTitle1" runat="server" Font-Bold="True" Font-Italic="True" 
                    Font-Size="XX-Large" ForeColor="Blue" Text="Sports Pro"&gt;&lt;/asp:Label&gt;
                &lt;br /&gt;
                &lt;asp:Label ID="lbltitle2" runat="server" Font-Size="Large" ForeColor="Red" 
                    Text="Sports managment software for the sports enthusiast"&gt;&lt;/asp:Label&gt;
            &lt;/h1&gt;
        &lt;/div&gt;
        &lt;div class="clear hideSkiplink"&gt;
            &lt;asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" 
                Height="16px" Width="59px" Orientation="Horizontal"&gt;
            &lt;/asp:Menu&gt;
            &lt;asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" 
                ShowStartingNode="False" ViewStateMode="Disabled" /&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="main"&gt;

        &lt;asp:ContentPlaceHolder ID="MainContent" runat="server"&gt;
            &lt;p style="height: 708px; width: 725px; margin-bottom: 48px;"&gt;
                &lt;br /&gt;
            &lt;/p&gt;
        &lt;/asp:ContentPlaceHolder&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;div class="footer"&gt;

    To contact us, call us at 800-555-0400 or email us at         &lt;a href="mailto:sportspro@sportsprosoftware.com"&gt;sportspro@sportsprosoftware.com&lt;/a&gt;&lt;/div&gt;
 &lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
