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 6375995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:41:15+00:00 2026-05-25T01:41:15+00:00

I have a site that has the following structure: <div id=page_wrapper> <div id=header></div> <div

  • 0

I have a site that has the following structure:

<div id="page_wrapper">
<div id="header"></div>
<div id="content-wrapper"></div>
<div id="footer"></div>
</div>

Now I have set html, body and page_wrapper to 100% in CSS. The goal here is to get the footer to be at either the bottom of the content or the bottom of the window — whichever is visually lower. I’ve read a lot of things about how to do it, but I can’t seem to get it to work correctly.

html, body, #page_wrapper { height: 100%; }

#page_wrapper {
width: 864px;
margin: 0 auto;
min-height: 100%;
background: url('path/to/image') repeat-y;
}

#content-wrapper {
position: relative;
width: 824px;
min-height: 100%;
margin: 0 auto;
}
#footer, #header {width: 824px; margin: 0 auto; }
#footer {
border-top: 4px solid #000;
position: relative;
margin-top: -7.5em;
}

It sorta seems to work. But problem I am seeing is, that if I zoom out my page_wrapper seems to almost reset its height to 100% but as I zoom in, it gets shorter and shorter and shorter causing overlap in the footer and content text instead of pushing the footer down.

Any idea how to repair something like that? I’m at my wits end with it trying to google up an answer…

  • 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-05-25T01:41:16+00:00Added an answer on May 25, 2026 at 1:41 am

    Updated my answer with a test html, works quite fine in chrome 13. I tried zooming in and out and the footer stays put.

    You should put your footer outside of the page-wrapper. Then give it a negative margin equal to the height of the footer. You can change the height of either the header or the content-wrapper to see the footer stick to the bottom of the page-wrapper instead of the browser window. If you open the html as is you will see the blue footer sticking to the bottom of the page and the page-wrapper taking up 100% of the window.

    Please note that this is broken without a fix in Firefox 4 and 5. Also it doesnt work in IE 5.5 and earlier.

    To make this work properly in IE6 add height: 100%; to #page_wrapper

    <html>
      <head>
        <style type="text/css">
        body, html {height: 100%;margin:0;padding:0;}
        #page_wrapper {min-height: 100%; background-color: red;}
        #header{height: 200px; background-color: green;}
        #content-wrapper{height: 200px; background-color: yellow;}
        #footer {height: 7.5em;margin-top: -7.5em; background-color: blue; position:relative;}
        </style>
      </head>
      <body>
        <div id="page_wrapper">
          <div id="header"></div>
          <div id="content-wrapper"></div>
        </div>
        <div id="footer"></div>
      </body>
    <html>
    

    live example of this can be found on:

    https://www.effacts.com/effacts/public?context=107

    a proper sheet and html can be found here:

    http://www.cssstickyfooter.com/

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

Sidebar

Related Questions

I have a site that has the following basic structure. This site should have
I have a site that has a simple HTML button in a form. All
I have a site that has 2 DIV tags, one floats left the other
I have a paging control on my site that has it's container element set
I have a rather large mysql table that has the following structure: fieldid |
I have a site that has subdomains for each user and a wildcard SSL
Information: I have a site that has a design on index.php, and then you
I have a site that usually has news items at the top of the
We have a hosted site that has a CMS we built running on a
I have an ASP.NET Site that has a single Master Page. On one of

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.