• Anonymous User 16550965

    (@anonymized-16550965)


    Hello!
    I need help with my footer. It’s always floating around and not sticking to the bottom. I asked a friend and he said that I need to change the minimum height of my containers so that it works.
    He sent me this: min-height: calc(100vh – headerheightpx – footerheightpx);
    But I dont know where to put it and also what to add infront (<dif???).
    Anyway. could someone help?

    • This topic was modified 6 years ago by bcworkz. Reason: moved to Fixing

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Try this added to the Additional CSS panel of your theme’s customizer:

    #content {
        min-height: calc(100vh - 171px);
    }

    The 171 is just the footer height. You don’t need the header height because #content’s top starts below the header.

    Edited to add:
    I’m moving your topic to Fixing WordPress forum. Adjusting your site’s CSS is not considered development. Yes, it might seem you’re not really “fixing” anything either. But in a way you are, as your site isn’t working the way you want it to ?? The general rule in picking forums here is when in doubt, use Fixing

    • This reply was modified 6 years ago by bcworkz.
Viewing 1 replies (of 1 total)
  • The topic ‘Min. height container’ is closed to new replies.