Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JS Sticky Footer

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #41255
    rainemaida
    Member

    Hi,

    I am trying to implement the JS sticky footer as per:

    https://css-tricks.com/snippets/jquery/jquery-sticky-footer/

    I’m quite sure I’ve done everything, but would somebody please be able to tell me what I’ve missed out, or have done wrong, as it doesn’t seem to be working.

    http://stomptheweb.co.uk/spotless/index.html

    Much appreciated.

    Cheers,
    Steve

    #116747
    Paulie_D
    Member

    In what way is it not working. I’m pretty sure that the inline style of position:static on your footer-container isn’t required though.

    #116752
    rainemaida
    Member

    Hi,

    It’s suppose to be a sticky footer, always at the bottom of the page and it’s not.

    Have you had a look at the code? The static is getting added to the footer because the page content is larger than the window – so I am pretty sure it’s needed.

    Steve

    #116754
    Chris Coyier
    Keymaster

    It seems to be working for me. One thing missing is that .footer-container should have `width: 100%;` so that it looks the same when it’s sticking to the bottom.

    http://cl.ly/LTgI

    #116756
    Paulie_D
    Member

    I’m wondering if the height of the header is a factor?

    #116823
    rainemaida
    Member

    Thanks guys – really appreciate your time – sorted now!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.