WordPress.org

Ready to get started?Download WordPress

Forums

Get footer to stay down (4 posts)

  1. stevencoy
    Member
    Posted 4 years ago #

    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.

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    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

  3. Peter Boosten
    Member
    Posted 4 years ago #

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

    Peter

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    ooh...thats good for me to know too!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags