keep footer at the bottom of the page

  • Author
    Posts
  • #3944
    ef

    Some of my site pages contain a small amount of content (see here: http://nux-glass.pl/partnerzy/) which makes the footer sit halfway up the page. I want to keep it at the bottom of the page (preferably by using Mantra Custom CSS). I’ve already tried adding this css code – http://matthewjamestaylor.com/blog/keeping-footers-at-the-bottom-of-the-page and also the one I’ve found here – http://ryanfait.com/sticky-footer/ and both of them do not work as I want them to. The first one stick my footer to the bootom, yay, but also pushes it to the right and I can’t center it no matter what I do. The second one adds some space between the content of the page and the footer which works nicely when there is a small amount of content, but it also adds empty pixels when there is just enough content to fill the page, which kinda looks dumb.

    I’m certain I’m doing something wrong … Do you have any ideas how to achieve the effect I’m going for with this particular theme? I’ve already made some changes to the style.css, but the custom css should override any mistakes I’ve made, right?
    If something is not clear tell me and I’ll try to describe what my problem is once again and provide you with any information you need to help me fix this issue. Thanks!

    I also wanna say that I love Mantra 🙂 thanks CryoutCreations for designing it!

    #4137
    Kay
    Cryout Creations mastermind

    Hi!

    There’s no real 100% proof fix here but you could add this code to the Custom CSS area:

    #main { min-height:500px; }

    I think that’s pretty self explanatory. The 500px value (which I encourage you to edit at your own will) is settings the minimum height for your content area no matter how much content you have in it.


    Before posting consider reading our short theme debugging instructions.
    Please read the FAQs: MantraNirvanaParabolaTempera
    Tutorials: custom menustranslating themeinstalling themecategory page with introdisabling comments Wordpress: child themescategories/posts
    Before making any modifications to your theme we strongly recommend using Child Themes.
    #4485
    ef

    Oh my God, this totally works! … and also makes me look stupid, ’cause gosh, it’s such an easy solution 🙂
    Thank you so much! Don’t know why I haven’t seen your reply earlier but be sure I’m eternally grateful for your help 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘keep footer at the bottom of the page’ is closed to new replies.