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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:37:56+00:00 2026-05-24T11:37:56+00:00

EDIT: using position:fixed for pageHeader, pageBody, and pageFooter (and then correcting their positions) did

  • 0

EDIT: using position:fixed for pageHeader, pageBody, and pageFooter
(and then correcting their positions) did it for me. Thanks guys!

I’m working on an Android web application using HTML and CSS. I currently have this:

#container {
 min-height:100%;
 position:relative;
}

#pageHeader {
 color:<%=foreColor%>;
}

#pageBody {
 padding-bottom:100px;
}

#pageFooter {
 position:static;
 clear:both;
 bottom:0;
 height:5%;
}

I managed to stick the footer to the bottom of the page using this, but when the body gets longer than the page height, the footer doesn’t scroll down to the bottom of the page (it sticks to the bottom of the page height) therefore part of the body that is lower than the screen overlaps it.

I’m using this HTML structure:

<div id="container">
  <div id="pageHeader"></div>
  <div id="pageBody"></div>
</div>
<div id="pageFooter"></div>

[I also have a header, body, footer ids within pageBody if that affects anything]

  • 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-24T11:37:57+00:00Added an answer on May 24, 2026 at 11:37 am

    Ryan Faits CSS Sticky footer has long been the standard way of achieving a sticky footer.

    http://ryanfait.com/sticky-footer/

    Unless I’m misunderstanding you and you want to make a fixed footer (where it would be at the bottom of the screen all the time)

    In which case just set position:fixed instead of static

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

Sidebar

Related Questions

Title edit: capitalization fixed and 'for python' added. Is there a better or more
I'm using the jQuery qTip to show individual users and their votes when an
I'm trying to give a div (position: fixed) the width of 100% (relating to
Background I need to do a rather complex layout for a client, using fixed
I am trying to do positioning in JavaScript. I am using a cumulative position
If, for example, I have a menu using fixed positioning but it's larger than
Is there a way to select all elements that have a given style using
Edit: I figured this out. jQuery Cycle plugin adds a z-index to every item
I am working on a defect in my GTK code for displaying context menus.
Using the following CSS, I'm trying to make a navigation bar at the top

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.