Forums

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

Home Forums CSS Sticky footer trick not working, main section overflows over footer

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #168346
    GroovyMotion
    Participant

    I’ve been reading lots of techniques regarding sticky footers and so far the best one is this one by Chris: https://css-tricks.com/snippets/css/sticky-footer/

    I’ve made a pen with some content to try it out and if there is too much content in the main wrap it overflows over the footer instead of stretching the height of that div.

    Here is the pen: http://codepen.io/GroovyMotion/pen/ojbvu

    Cheers!

    #168347
    Paulie_D
    Member

    My guess is that, at the very least, you haven’t cleared the floats in the page-wrap.

    That would probably be a good place to start.

    #168361
    GroovyMotion
    Participant

    Ah! I always forget to add
    *:before, *:after {content: ''; display: table}

    Thanks Paulie_D

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