title: Footer is displayed over content. I need it always on the bottom of the page
body: <p>I am new to CSS and HTML, and I'm trying to create a simple HTML page.</p>
  
  <p>So about the implementation : 
  I have a main div called container with relative positioning. Inside this main div, I have 3 more div's: header- positioned absolute with top: 0px, menu- also absolute, footer- absolute with bottom: 0px. My main problem is about the content div which is placed between menu div and the footer. If this content div has much information, its height becomes larger than the main div(container), and the footer is displayed over the information from the content div.</p>
  
  <p>I tried to not give a positioning and place under the menu div with padding-top, but then the last 2-3 lines are lost under the footer. I should say that a sticky footer is not what I'm looking for. I need another solution.</p>
  
  <p>This the HTML:</p>
  
  <pre><code>&lt;body&gt;
          &lt;!-- CONTAINER --&gt;
          &lt;div id="container"&gt;
              &lt;!--HEADER--&gt;
              &lt;div id="header" &gt;
                  &lt;p&gt;Header&lt;/p&gt;
              &lt;/div&gt;
              &lt;div id="menu" &gt;
                  &lt;ul&gt;
                      &lt;li&gt;Menu Item 1&lt;/li&gt;
                      &lt;li&gt;Menu Item 2&lt;/li&gt;
                      &lt;li&gt;Menu Item 3&lt;/li&gt;
                      &lt;li&gt;Menu Item 4&lt;/li&gt;
                      &lt;li&gt;Menu Item 5&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;!-- Problematic div --&gt;
              &lt;div id="content"&gt; // simulate large amount of information
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
                  &lt;h1&gt; Content&lt;/h1&gt;
              &lt;/div&gt;
              &lt;div id="footer"&gt;
                  &lt;p&gt; Footer &lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  </code></pre>
  
  <p>and CSS:</p>
  
  <pre><code>html,
  body {
     margin:0;
     padding:0;
     height:100%;
  }
  
  #container{
      position : relative;
      min-height:100%;
  }
  
  #header{
      top : 0px;
      position : absolute;
      width : 100%;
      height : 100px;
      background-color: red;
  }
  
  #header p{
      position : absolute;
      top : 39px;
  }
  
  
  #menu{
      position : absolute;
      top : 100px;
      width: 100%;
      background-color: yellow;
      overflow: auto;
      white-space:nowrap;
  }
  
  #menu ul{
      margin : 0px;
      padding-left: 20px;
      list-style-type: none;
  }
   #menu li{
      display : inline-block;
      padding-right: 150px;
      border-style : 1px solid;
   }
  
   #content{
      /*
      padding-top : 121px;
      */
      position: absolute;
      top : 120px;
      width : 100%;
      background-color: green;
   }
  
   #footer{
      position: absolute;
      width: 100%;
      height : 60px;
      background-color:grey;
      bottom : 0px;
   }
  </code></pre>
  
  <p>Sorry for the long post. I just tried to explain the problem as best as possible.
  Thanks a lot.</p>