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

  • Home
  • SEARCH
  • 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 6113033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:48:45+00:00 2026-05-23T14:48:45+00:00

I have an HTML Document that looks a bit like this, only is far

  • 0

I have an HTML Document that looks a bit like this, only is far more complex and harder to control:

<body>
  <div id="title">This div does not do anything, just stays at the top.</div>
  <div id="container">
    <div id="navigation">Some navigation</div>
    <div id="content">Most of the content</div>
  </div>
</body>

Then I have a stylesheet that includes the following:

#container
{  
   height: auto !important;
   overflow: visible !important;
   overflow-x: auto;
   overflow-y: scroll;
   position: relative;
   width: auto !important;
}

This all works absolutely perfectly. The title section stays at the top of the page, the container div becomes scrollable if the content is long enough to need to scroll, otherwise it doesn’t.

The problem is, that I am then using Javascript to add a whole lot more stuff to the content div. This means that the content div is getting longer than the page after it has loaded and this seems to mean, in IE8 at least, that the scrollbars on the container never get activated, so once the Javascript added content falls off the bottom of the page it becomes inaccessible.

It doesn’t help that the minute I start tinkering with the IE developer tools, the scrollbars vanish altogether and I can’t make them reappear, so it becomes somewhat hard to test.

  • 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-23T14:48:46+00:00Added an answer on May 23, 2026 at 2:48 pm

    The solution that has worked was a simple hackaround of resizing the element with JavaScript to match the size it actually is once I have added the extra data to it, like this:

    document.all['container'].style.height = document.documentElement.clientHeight+"px";
    

    Of course, this doesn’t entirely circumvent the problem- for that we need a new function:

    function resizeResults()
    {
        var resultPanel=document.all["container"];
        var topPanel=document.all["title"];
        var newHeight= document.documentElement.clientHeight;
        newHeight -= topPanel.clientHeight;
        resultPanel.style.height=newHeight;
    }
    

    Then we can use window.attachEvent("onresize", resizeResults); to ensure that we don’t lose the scrollbar or have it otherwise messed around when the user changes the window size.

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

Sidebar

Related Questions

Okay, if I have a html document that looks a bit like this: <div
I have html code that looks roughly like this: <div id=id1> <div id=id2> <p>some
I have an xml document that looks like this. <?xml version=1.0?> <services> <service sn=1
a) I have an html page that looks like this: <html> <head> <title>Page Title</title>
I have code, that looks something like this: (function($) { $(document).ready(function() { function getHash(){
I have an HTML document that is using to embed a control. In some
I have an <img> in an HTML document that I would like to highlight
I have a function in jquery that looks like this. function interceptFilter(e){ $.ajax({ type:
My html document looks like this: <html> <head> .. load jquery and other stuff
I have an HTML (not XHTML) document that renders fine in Firefox 3 and

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.