jeudi 7 septembre 2017

Put Footer at very bottom of page?

Right now I have a footer that is always at the bottom of the page. This is fine until I have more content than can fit on the page, which means when you scroll down, the footer scrolls up as if its fixed..

Here is my CSS:

   .footerWrap{
    clear: both;
    position:absolute;
    width:100%;
    bottom:0;
}

.footer {
    position: relative;
    margin-bottom: 0px;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1rem;
    background-color: #000000;
    color: #FFFFFF;
}

.footerLinks{
    padding-left: 150px;
    text-align: left;
}
.footerLinks p {
    display: inline;
}

.footerLinks a {
    color: #169e98;
}

.footerSocial{
    text-align: right;
}

And my HTML:

<!--Footer-->
          <div class="footerWrap">
          <div class="footer">
              <div class="footerLinks">
              <a href="privacy.html">Privacy Policy</a><p> |</p>
              <a href="sitemap.html">Sitemap</a><p> |</p>
              <p>© 2017</p>
              </div>
              <div class="footerSocial">
                  <a href="http://ift.tt/g8FRpY" target="_blank"><img src="image/findfb.png" alt="Find us on Facebook"></a>
              </div>
            </div>
          </div>

Essentially, I want to put the footer Div below the text content.

Aucun commentaire:

Enregistrer un commentaire