Code:
                          $("#code_samples").click(function() {
                                            $("#main_centerbox").animate({
                                                left:'0px',
                                                top:'0px',
                                                height:'auto',
                                                width:'90%',
                                                overflow:'auto'
                                                        });
                                            $(".maintext").hide();
                                            $("#code_samplesdisplay").fadeIn("slow");
                                            });
                              });


Your height is set to Auto. Everywhere else it's set to 100%. Also, check out that width, it's 90%, everywhere else, except one, has 100% as well. Change that and I think you'll get the result you were looking for.
But those functions all trigger in response to different actions. The one I am testing first is the first one, that triggers when i click the "Code Samples" folder. There's got to be something that is making the div stop after the <h1> element, instead of going to the end of that div.
Yes, it's your height. Change it to 100%.

In detail, your height is currently set to auto, which will fill any container it's in. In this case, all your divs are in a div named "#main_centerbox" which has a height of 100px. That's why your codesample box won't stretch to the bottom as it's auto filling the 100px of height in #main_centerbox.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 3 of 3
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement