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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:18:00+00:00 2026-06-01T03:18:00+00:00

Here an example http://jsfiddle.net/NuzDj/ If you resize windows size, sidebar overlapping the wrapper &

  • 0

Here an example http://jsfiddle.net/NuzDj/

If you resize windows size, sidebar overlapping the wrapper & footer.

How do I push the wrapper height automatic when sidebar overlap them?

  • 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-01T03:18:01+00:00Added an answer on June 1, 2026 at 3:18 am

    After working this out for about the past half hour, I figured the easiest way to do this would be manually check for the point of scroll past the end of the content at which point removing the fixed class from sidebar allowing content which passed after this to show as intended, however to sneakily hack it to make it appear as though it was still in the same place a margin-top is applied aswell to the sidebar to keep it sitting at it’s end point after scrolling to the end of content.

    here is the jsfiddle: http://jsfiddle.net/mikeymagic/yxh8m/3/

    with this bit of jquery magic:

     var sidebarheight = $('.sidebar').height();
     var contentheight = $('.content').height();
    
     if (y > (contentheight - sidebarheight)) {
         $('.sidebar').css({marginTop: contentheight - sidebarheight - 10});
         $('.sidebar').removeClass('fixed');
     }
     else 
        {
         $('.sidebar').css({marginTop: '0'});
         $('.sidebar').addClass('fixed');
        }
    

    this is inserted inbetween this

     var y = $(this).scrollTop();
        if (y >= top) {
          $('.sidebar').addClass('fixed');
    

    and this:

    } else {
          $('.sidebar').removeClass('fixed');
        }
      });
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here an example http://jsfiddle.net/EhLsT/ $(window).scroll(function () { if ($(window).scrollTop() > $(#header).offset().top) { $(#floating).show(); }
Here an example http://jsfiddle.net/7aVXc/ Let' say current image height is 400px . How do
You can see the example here: http://jsfiddle.net/8EHED/8/ This is a tricky problem because I
I'm working on a jquery carousel. You can see the example here: http://jsfiddle.net/6fwbS/2/ Click
Here is a live example: http://jsfiddle.net/Pzvdv/ <ul id=navigation> <li><a href=#>HOME</a></li> <li><a href=#>OUR APPROACH</a></li> <li><a
This example working great because here containment is body http://jsfiddle.net/roXon/hMmbK/2/ when i use container
I've created an example of the problem here: http://jsfiddle.net/JustinN/qWeLT/1/ My actual code is hooked
You can see an example here: http://jsfiddle.net/TuH95/5/ When you hover over the li element
Here an example http://jsfiddle.net/x5mCR/ With the current code how do I make the big
Here an example http://jsfiddle.net/6GdW6/ $(.thumbnail).live(click, function() { $(.fullimage).hide(); var i = $(<img />).attr(src, this.href).load(function()

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.