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

  1. kubegusa
    Posted 3 years 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..


  2. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Look up fixed position in CSS.

  3. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

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

  4. kubegusa
    Posted 3 years 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