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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:26:37+00:00 2026-05-31T01:26:37+00:00

I have no idea why my script is not working… $(document).ready(function() { var div_height

  • 0

I have no idea why my script is not working…

$(document).ready(function() {  

var div_height = $("#content").height();
$(".leftSideBar").css("height", div_height);

var div_height = $("#content").height();
$(".rightSideBar").css("height", div_height);

});

As you can see at http://www.willruppelglass.com/ the sideBars don’t go all the way down, can anyone tell me why its not? I’m kinda new to jQuery and I am thinking it has something to do with the document ready function, going to read more on this, but if anyone can point me in the right direction, that would be awesome.

  • 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-31T01:26:39+00:00Added an answer on May 31, 2026 at 1:26 am

    It looks like your height is off by the height of the images in your #content section. Try running the code on window.load which fires when all the assets on the page have finished loading:

    $(window).bind('load', function() {  
    
        //since your running the same function on the elements,
        //you can select them both at once,
        //which removes the need for a variable that stores the height
        $(".leftSideBar, .rightSideBar").css("height", $("#content").height());
    
    });
    

    I noticed that your page is using a webfont; it could be that when document.ready fires, the webfont has not yet been rendered and when it does render, it makes the #content element taller. Binding to window.load should help this if it is the issue.

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

Sidebar

Related Questions

I've got this code, working only in firefox. <script type=text/javascript> function setVideo(url){ url =
I have the following part of a validation script: $invalidEmailError .= <br/>&raquo;&nbsp;You did not
i have this code, execcommand for BOLD, and it is not working under opera.
i have the folowing code: window.document.getElementById(bufferTopic).innerHTML = <img src='einstein/einstein.png' width='800' height='600'><script type='text/javascript' language='javascript'>alert('test');</script> i
My script: (function($){ $.fn.megaswitcher = function(settings) { return this.each(function() { var $i = $(this),
Here's my nonworking attempt: <script> function uploadImageSubmit() { var imageFile = $('.imageFile').val(); $.ajax({ url:
I've got a little script which is not working nicely for me, hope you
I have a problem working with ScriptManager's RegisterClientScriptBlock which is not working. I have
Anyone have idea about how to bind Boolean in sqlite with objective - c.
I have idea to write errors from my application to the Windows Event Viewer

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.