Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:16:12+00:00 2026-06-13T16:16:12+00:00

I have an outer div, called #wrap, and two inner divs: #container and #footer.

  • 0

I have an outer div, called #wrap, and two inner divs: #container and #footer. Content is inside #container, and is dynamic. There may be a little, there may be a lot.

When content is minimal, the footer div may appear half-way up the page. However, this changes depending on the monitor/resolution. What is 50% from bottom on a large monitor may only be 10% from bottom on a small/cluttered viewport.

If I use this css method:

body,html { height: 100%; }
#wrap     { position:relative; min-height:100%; }
#container{ margin:0px 0px 50px 0px; }
#footer   { position:absolute; bottom:0px; }

then the page will always extend to use 100% of the viewport and the footer will be at bottom of the viewport – exactly as required.

However, if the content increases (or if a small viewport), the footer may overwrite any content extending into its 130px height — the footer will not bump down.

Is there a way to remedy this?

Note: I don’t wish to use percentages for the footer height as it is fixed at 130px and cannot squish.

Here is a fiddle I’ve been using to experiment

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:16:14+00:00Added an answer on June 13, 2026 at 4:16 pm

    This is the best example of sticky footer I’ve seen: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

    UPDATE (April 2017): As the above link has become inoperable (and much time has passed since the original post) I’d like to offer the following solution to this problem:

    Permanently fixed:

    #container {
        padding-bottom: 130px; // ...or more
    }
    
    #footer {
        bottom: 0;
        height: 130px;
        position: fixed;
        width: 100%;
    }
    

    For a dynamically fixed element, check out this jQuery plugin: https://libraries.io/bower/jquery-sticky-header-footer

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two divs, one inner and one outer, but the inner div is
I have two divs, one within the other. The outer div (the container) is
I have an outer div and in it i have two inner divs to
I have an outer div, and inside of that, I have an inner div
I have one div inside another. The inner div is larger than the outer
I have two div's which looks like this <div id=outer> <div id=inner> </div> </div>
In have two div in the page,the outer and the inner. I bind the
I have an inner div inside an outer div. The inner div is draggable
I have an outer div, inner div and a table inside the inner div.
I have outer div and inner div. I need to place inner div at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.