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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:31:58+00:00 2026-05-31T23:31:58+00:00

James here! I’ve been trying for about two hours now to get a sticky

  • 0

James here! I’ve been trying for about two hours now to get a sticky footer, but I seem keep messing up the CSS. I’m looking for a script that jQuery can handle. I understand how most of the scripts work (which is surprising, since I’m just learning), but I need the script to work no matter what the height of the footer is, because it doesn’t have a dynamic height set in the CSS file of my page. Would anyone be able to supply a working script for a sticky footer? I want the footer itself to always be at the bottom of pages, BUT NOT FIXED POSITION. The content element is #posts, and the footer area is a element with the ID of #bottom. Here is a page example: JTB Permalink Page

  • 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-31T23:31:59+00:00Added an answer on May 31, 2026 at 11:31 pm

    Ok.
    HTML:

    <div id="container">
        <div id="wrapper">
            <!-- CONTENT GOES HERE -->
        </div>
        <div id="footer">
            <!-- FOOTER GOES HERE -->
        </div>
    </div>
    

    CSS:

    #container {
        min-height: 100%;
        position: relative;
        width: 100%;
    }
    #wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        padding-bottom: 206px; /* footer height, we will fix that with jquery */
    }
    #footer {
        position: absolute;
        bottom: 0;
        width: 100%;
        left: 0px;
        height: 206px; /* footer height if any */
    }
    

    jQuery:

    $(document).ready(function(){
        var footer_height=$("#footer").height();
        $("#wrapper").css({
            'padding-bottom' : footer_height
        });
    });
    

    I must warn you, jquery .height() function may not work properly so be careful with paddings and margins (just add margin/padding values to ‘footer_height’ and you should be fine).

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

Sidebar

Related Questions

I am trying to extend the JSON.net example given here http://james.newtonking.com/projects/json/help/CustomCreationConverter.html I have another
So James Patterson keeps trying to hack my website! Okay, not really, but he
I'm trying to connect to James server localhost, but I'm getting an exception javax.mail.MessagingException:
thanks for looking my problem is that i cant seem to get jquery to
You can see what I am trying to do below. Two ways I have
This is my first question here but I'm sure there are many more to
I have a struct here with something like: char *sname; ........ players[i].sname equalling James.
Here is my program which reverses a string. I am trying to use function
I'm trying to decide whether to use James( http://james.apache.org/ ) or Javamail( http://java.sun.com/products/javamail/ )
Here is an example data set: data <- data.frame (author = c('bob', 'john', 'james'),

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.