Forums

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

Home Forums CSS Footer won't stay at the bottom on my contact page.

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #254358
    lazyparkerranch
    Participant

    Link to codepen

    See the Pen GmmGQP by Pearl Dusenbery ( @lazyparkerranch) on CodePen.

    https://production-assets.codepen.io/assets/embed/ei.js

    As written, it floats over the picture on the left of the page.
    Please help, I have pulled my hair out

    #254401
    Shikkediel
    Participant

    I see no need for the absolute positioning, it looks okay when you remove that and add clear: both to .foot.

    #254402
    JeroenR
    Participant

    Your body needs height. Because of the floating elements it has not. So indeed if your footer clears the floating, your body will have the same height as its content.
    If you need the footer to always be at the bottom of the page, try something like sticky footer.

    #254411
    lazyparkerranch
    Participant

    That worked. Thank you very much

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