title: Why is my footer in the middle of my page?
body: <p>For some reason my footer isn't at the bottom of the page even though I specified it to be at the bottom. Here is a photo of it being in the middle of the page on top of content. I need some help understanding how to make the footer at the bottom of the page, and not on top of my pictures/content.</p>
  
  <p><a href="https://i.stack.imgur.com/e44Cr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e44Cr.png" alt="enter image description here"></a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8" /&gt;
      &lt;title&gt;int222_162d16 - Assignment 2 - Home Page&lt;/title&gt;
      &lt;link rel="stylesheet" href="css/normalize.css"   type="text/css" media="screen" /&gt; 
      &lt;link rel="stylesheet" href="css/sitecss.css" type="text/css" media="screen" /&gt; 
    &lt;/head&gt;
    &lt;body&gt;
      &lt;nav class="fixed-nav-bar"&gt;
        &lt;ul class="nav"&gt;
          &lt;li class="nav"&gt;&lt;a class="nav" href="../index.html"&gt;&amp;spades; My Zenit Account&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav"&gt;&lt;a class="nav" href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav"&gt;&lt;a class="active" href="gallery.html"&gt;Gallery&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav"&gt;&lt;a class="nav" href="video.html"&gt;Video&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav"&gt;&lt;a class="nav" href="audio.html"&gt;Audio&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav"&gt;&lt;a class="nav" href="table.html"&gt;Tables With CSS&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav"&gt;&lt;a class="nav" href="pizza/index.html"&gt;Forms&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav"&gt;&lt;a class="nav" href="css/sitecss.css"&gt;CSS Used&lt;/a&gt;&lt;/li&gt;
          &lt;li class="nav"&gt;&lt;a class="nav" href="extra/index.html"&gt;Extra&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/nav&gt;
      &lt;h1&gt;Photo Gallery!&lt;/h1&gt;
  
      &lt;div&gt;
  
          &lt;aside class="r"&gt;
              &lt;p class="c"&gt;&lt;b&gt;&lt;u&gt;Four More Wonders of the World!&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;
              &lt;table&gt;
                  &lt;ol&gt;
  
                      &lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Great_Pyramid_of_Giza"&gt;The Great Pyramid of Giza&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="http://geography.about.com/od/culturalgeography/ss/Seven-Wonders-Of-The-Modern-World.htm#step2"&gt;CN Tower&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="http://geography.about.com/od/culturalgeography/ss/Seven-Wonders-Of-The-Modern-World.htm#step3"&gt;Empire State Building&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="http://geography.about.com/od/culturalgeography/ss/Seven-Wonders-Of-The-Modern-World.htm#step4"&gt;Golden Gate Bridge&lt;/a&gt;&lt;/li&gt;
                  &lt;/ol&gt;
              &lt;/table&gt;
  
              &lt;p class="c"&gt;&lt;b&gt;&lt;u&gt;Social Media Links&lt;/u&gt;&lt;/b&gt;&lt;/p&gt;
  
              &lt;center&gt;
                  &lt;aside style="position: relative; background: url('images/social-media.png') no-repeat; width: 250px; height: 140px;"&gt;
                      &lt;a href="http://facebook.com" style="width: 23px; height: 23px; border: 0; position: absolute; top: 3px; left: 4px;"&gt;&lt;/a&gt; &lt;!-- use this as a guide --&gt;
                  &lt;/aside&gt;
              &lt;/center&gt;
  
          &lt;/aside&gt;
  
          &lt;section class="s"&gt;
              &lt;h3&gt;Why Does A Country Need A Capital City?&lt;/h3&gt;
              &lt;p&gt;Capital cities are usually known as the administrative centre of the country. They are usually the most populated city
              within the country, and the Government will usually have the capital city as the base. Representatives from other embassys 
              will be based off of the capital city, and same with the civil workers.&lt;/p&gt;
          &lt;/section&gt;
  
          &lt;section class="s"&gt;
              &lt;h3&gt;China&lt;/h3&gt;
  
  
              &lt;figure&gt;
                &lt;figcaption&gt;
                    The Great Wall of China
                 &lt;/figcaption&gt;
                 &lt;img src="images/The_Great_Wall_of_China_at_Jinshanling.jpg" alt="The Great Wall of China" title="The Great Wall of China" /&gt;
              &lt;/figure&gt;
                  The great wall is over twenty-three hundred years old, and it's official length is 21,196.18km. In the first week of may 
                  and October there can be upwards of seventy-thousand people per day and in 2001 there were sixty-three million visiters in Badaling.
                  The Great Wall was constructed due to the states of Qin, Wei, Zhao, Qi, and Zhongshan having a warring period.
          &lt;/section&gt;
  
          &lt;section class="s"&gt;
              &lt;h3&gt;Jordan&lt;/h3&gt;
  
  
              &lt;figure&gt;
                &lt;figcaption&gt;
                    Petra
                 &lt;/figcaption&gt;
                 &lt;img src="images/rsz_377px-petra_jordan_bw_21.jpg" alt="Petra" title="Petra" /&gt;
              &lt;/figure&gt;
                  Petra is a archaeological city in southern Jordan. This historical city is known for it's rock-cut architecture and water conduit systems.
                  Petra also is known as Raqmu to the Nabataeans or Rose City due to the color of the stones which are carved.
          &lt;/section&gt;
  
          &lt;section class="s"&gt;
              &lt;h3&gt;Italy&lt;/h3&gt;
  
  
              &lt;figure&gt;
                &lt;figcaption&gt;
                    The Colosseum
                 &lt;/figcaption&gt;
                 &lt;img src="images/rsz_800px-colosseum_in_rome_italy_-_april_2007.jpg" alt="The Colosseum" title="The Colosseum" /&gt;
              &lt;/figure&gt;
              The Colosseum is an oval amphitheatre in the centre of Rome, built of sand and concrete. It is known as the largest amphitheatre ever built. The Colosseum is situated east of the
                  Roman Forum. The construction started in AD 72 and was completed in AD 80. It could hold an estimated fifty to eighty-thousand people.
          &lt;/section&gt;
  
          &lt;section class="s"&gt;
              &lt;h3&gt;Mexico&lt;/h3&gt;
  
  
              &lt;figure&gt;
                &lt;figcaption&gt;
                    Chichen Itza
                 &lt;/figcaption&gt;
                 &lt;img src="images/Chichen-Itza-Castillo-Seen-From-EastJPG.jpg" alt="Chichen Itza" title="Chichen Itza" /&gt;
              &lt;/figure&gt;
              Chichen Itza was known as a focal point in the northern Maya lowlands between six-hundred to twelve-hundred AD. The 10th century saw the rise of the city
              as a regional capital controlling the area from central Yucatan to the north coast.
          &lt;/section&gt;
  
          &lt;section class="s"&gt;
              &lt;h3&gt;Peru&lt;/h3&gt;
  
  
              &lt;figure&gt;
                &lt;figcaption&gt;
                    Machu Picchu
                 &lt;/figcaption&gt;
                 &lt;img src="images/800px-Machu_Picchu_Peru.jpg" alt="Machu Picchu" title="Machu Picchu" /&gt;
              &lt;/figure&gt;
                  Machu Picchu is a Inca citadel situated on a mountain ridge 2430 meters above sea level. Archaeologists believe that Machu Picchu was built as an estate for their emperor, 
                  Pachacuti. It is the most familiar icon of Inca civilization.
          &lt;/section&gt;
  
          &lt;section class="s"&gt;
              &lt;h3&gt;India&lt;/h3&gt;
  
  
              &lt;figure&gt;
                &lt;figcaption&gt;
                    Taj Mahal
                 &lt;/figcaption&gt;
                 &lt;img src="images/rsz_728px-taj_mahal_in_march_2004.jpg" alt="Taj Mahal" title="Taj Mahal" /&gt;
              &lt;/figure&gt;
                  The Taj Mahal was to be built by the commission of Shah Jahan in 1631, so that he could build the Taj in the memory of his wife, Mumtaz Mahal,
                  a princess who died giving birth to their 14th child. The construction began in 1632. The tomb is the centrepiece of a 42 acre complex, which includes a mosque and a guest house, and is also set in formal gardens
                  bounded on three sides by a crenellated wall.
          &lt;/section&gt;
  
          &lt;section class="s"&gt;
              &lt;h3&gt;Brazil&lt;/h3&gt;
  
  
              &lt;figure&gt;
                &lt;figcaption&gt;
                    Christ the Redeemer
                 &lt;/figcaption&gt;
                 &lt;img src="images/rsz_1_cristor_redentor_2014.jpg" alt="Christ the Redeemer" title="Christ the Redeemer" /&gt;
              &lt;/figure&gt;
                  The idea of building a statue atop Corcovado was suggested in the mid 1850's when a priest, Pedro Maria Boss suggested in placing a Christian monument to honour their princess,
                   Princess Isabel. The project however wasn't approved until 1889 when the country became a republic and the statue was manufactured alongside the Statue of Liberty. They had required donations to build the monument, 
                   and most donators were Brazilian Catholics.
          &lt;/section&gt;
  
          &lt;/div&gt;
  
          &lt;footer class=f&gt;
         &lt;script&gt;
            var dt=new Date(document.lastModified);   // Get document last modified date
            document.write('&lt;p&gt;This page was last updated on '+dt.toLocaleString()) + '&lt;/p&gt;';
         &lt;/script&gt;
      &lt;/footer&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>ul.nav
  {
      list-style-type: none;
      margin: 0;
      padding: 0;
      overflow: hidden;
      background-color: #f3f3f3;
      border: 1px solid #e7e7e7;
      box-shadow: 5px 2px 10px #808080;
  }
  
  li.nav 
  {
      float: left;
  }
  
  li a.nav 
  {
      display: block;
      color: #666;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
  }
  
  /* Change the link color on hover*/
  
  li a:hover:not(.active) 
  {
      background-color: #ddd;
  }
  
  li a.active
  {
      display: block;
      color: #ffffff;
      background-color: #9999ff;
      text-align: center;
      padding: 14px 16px;
      text-decoration: none;
  }
  
  section.s /*shadow on sections*/
  {
      background-color: #ccccff;
      box-shadow: 2px 2px 2px 1px #808080;
      width:78%;
  
  }
  
  
  aside.r 
  {
    float: right;
    width: 20%;
    background-color: #ccccff;
    box-shadow: 2px 2px 2px 1px #808080;
  }
  
  p.c
  {
      text-align: center;
      width: 100%;
  
  }
  
  footer.f
  {
            bottom: 0;
            width: 100%;
            background:#ccccff;
            color:#000000;
  
            position:absolute;
            text-align:center; 
            font-weight:bold;
            display:inline-block;
            margin: 0px auto;
            line-height:20px;
  
  
            clear: both;
  }
  
  aside p 
  { 
      margin-top: 0 
  }
  
  body
  {
      background-color: #9F9FFF;
  }
  html, body 
  {
      max-width: 100%;
      /*overflow-x: hidden;*/
      margin:0;
  }
  
  figcaption
  {
      font-size: 1em;
      border: 1px solid;
      margin:0 auto;
      text-align:center;
  }
  figure
  {
      text-align: center;
  } 
  </code></pre>