1

So I have a footer that stays at the bottom but isn't fixed, however it doesn't work in Firefox only.

.Links {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #E48A4B;
  text-align: center;
  text-decoration: none;
}
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<footer>
  <div class="Links">
    <a href="https://codepen.io/mexO/">
      <i class="fa fa-codepen fa-2x" aria-hidden="true"></i>

    </a>
    <a href="https://jsfiddle.net/user/mexO/fiddles/">
      <i class="fa fa-jsfiddle fa-2x" aria-hidden="true"></i>
    </a>
    <a href="https://twitter.com/MaxJordanNet">
      <i class="fa fa-twitter fa-2x" aria-hidden="true"></i>
    </a>
    <a href="https://github.com/mexOcode">
      <i class="fa fa-github fa-2x" aria-hidden="true"></i>
    </a>
    <a href="updates.html">
      <i class="updatesButton fa fa-plus-circle fa-2x" aria-hidden="true"></i>
    </a>


  </div>
</footer>

Now it works if i change absolute to fixed in the CSS however that make it always on the page, which isn't what i want. It works in all other browsers i have tested apart from FireFox.

Also i have already tried using the only solution i could find, clear: both; but that didn't work either.

EDIT: My poor wording is confusing people.

Go to maxjordan.net on chrome to see for youself, but i want it to look like this

https://gyazo.com/b81099b69c43367769a46b321b327440 (Ignore the broken footer on the home page, just know thats the position i want it.)

However on firefox it looks like this:

https://gyazo.com/58a4e7a24a8e365aba2918d2aa4c8525

Prashant Pokhriyal
  • 3,727
  • 4
  • 28
  • 40

3 Answers3

0

EDIT:

I believe what you're looking for is here:

Footer at bottom of page or content, whichever is lower

If you want the footer to keep pinned to the bottom - even with content scrolling - change the position from absolute to fixed.

JSFiddle here: https://jsfiddle.net/iamjpg/rz2ddzx6/

.Links {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #E48A4B;
  text-align: center;
  text-decoration: none;
}
Community
  • 1
  • 1
iamjpg
  • 7,078
  • 1
  • 16
  • 18
0

Keep the position fixed instead of absolute.

Akmal Arzhang
  • 357
  • 4
  • 14
0

remove position absolute and just put footer tag bottom, in the end of html

Martian
  • 99
  • 1
  • 11