WordPress.org

Support

Support » Themes and Templates » Get footer to stay down

Get footer to stay down

  • On certain pages, where the content doesn’t fill the entire page, the footer does not stick to the bottom (is not pushed down). Is there a way to get the footer to always stick to the bottom, even if the content doesn’t fill the page? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • without a link to your site, it’s hard to say what to do exactly

    But usually you need to assign clear:both in your css

    a quick and dirty that usually worked for me if you can’t figure out where to put that in your css is to put
    <div style="clear:both"></div>

    in footer.php above the content

    also may need to combine that with a min-height to your content area in your style.css
    http://www.w3schools.com/CSS/pr_dim_min-height.asp
    explains min-height

    On an old theme I made, I had to use the clear to keep my footer under both my content area and my sidebar, and I can’t remember if I used a high px value of something like 800px or if I used 100% for the min-height….but one of those worked

    I’m not sure this is the most elegant solution, but I do remember it working for me

    Look here for an instruction on how to create a sticky footer.

    Peter

    ooh…thats good for me to know too!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get footer to stay down’ is closed to new replies.
Skip to toolbar