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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:22:34+00:00 2026-06-15T05:22:34+00:00

How would I, with Jquery, make a sticky footer that sticks to the bottom

  • 0

How would I, with Jquery, make a sticky footer that sticks to the bottom of the browser until it hits 350px before the end of the content. Basically I have another big footer at the bottom of the content and I want the sticky footer to stay sticky until you scroll to the 350px footer and it will stay ontop of the last footer so you can read the content

basically something like make a sticky footer but then 350px before the bottom of wherever the bottom of the content is stop the sticky footer and make it scroll with the page.

I found this online but i know the code to find out where the end of the content, as opposed to the end of the veiwable browser, would be different…Although it does work as a general sticky footer

$(function(){
positionFooter(); 
function positionFooter(){
    if($(document).height() < $(window).height()){
        $("#globalFooter").css({position: "absolute",top:($(window).scrollTop()+$(window).height()-$("#globalFooter").height())+"px" - })
    }   
}

$(window)
    .scroll(positionFooter)
    .resize(positionFooter)
});
  • 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-15T05:22:37+00:00Added an answer on June 15, 2026 at 5:22 am

    I’ve written an example to demonstrate how you would go about creating a sticky footer. In the example, the value bottomBound would be the height of your other non-sticky footer.

    It’s important to use a DOCTYPE declaration, because $(window).height() breaks without it.

    The code is here: GitHub – stickyFooter and JSFiddle.

    For those interested in doing this with a header rather than a footer, there’s also examples of that here: GitHub – stickyNav

    Edit: Restructured answer.

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

Sidebar

Related Questions

I'm attempting to make a menu bar that sticks to the bottom of the
jQuery plugins make code much more reusable. I previously made a plugin that would
how would you use JQuery with asp.net Code-Behind what i mean by that: i
Is there any plugin for jQuery that would take an argument for the max
I would like to use jQuery to make this: <ol> <li>item a</li> <li>item b</li>
I have a jquery mobile app that uses ajax to make calls to my
I would like to know how to make my website appear with jquery animations
For some reason I cannot make jQuery run things sequentially. See: http://jsfiddle.net/Az9E2/ I would
I have been trying to make jquery datepicker plugin work on a content page
In my mobile app, using jQuery Mobile... I would like to make a simple

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.