WordPress.org

Ready to get started?Download WordPress

Forums

How to make footer stick to bottom of page with margin-bottom ? (4 posts)

  1. kubegusa
    Member
    Posted 1 year ago #

    I have a Twentyeleven child theme http://www.route32.be/demaeyer/

    How do I make the bottom of the page/body/content glue to the bottom? Like the header 'sticks' to the top of the page, I want the footer or site generator to stick to the bottom of the page.

    I've tried:

    #page {
    margin-top: 0;
    margin-bottom: 0;
    }

    #site-generator {margin-bottom: 0;}

    #colophon {margin-bottom: 0;}

    But these options don't seem to have any results..

    Thanks!
    Leila

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Look up fixed position in CSS.

  3. Andrew
    Forum Moderator
    Posted 1 year ago #

    If you don't want something like WPyogi's suggestion, try this article.

  4. kubegusa
    Member
    Posted 1 year ago #

    Thanks but I don't get it. Why can I definie my top margin as 0, but defining the bottom margin as such, doesn't work..?

    I'm overwhelmed with the info sent, but I will take my time to go through it. It's more complicated than what my brain can handle at the moment.

Topic Closed

This topic has been closed to new replies.

About this Topic