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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:27:25+00:00 2026-06-17T03:27:25+00:00

I produce a popup div which looks like a classic Window on my web

  • 0

I produce a popup div which looks like a classic Window on my web page which can be minimized/resized/moved around.

I need it to have a header which is 25 px high, a footer which is 50px high and then the body of the window always takes the “rest”, which is variable because the window could be resized. The body of this window gets its DOM updated dynamically where elements can be added. If enough elements are added that their combined height exceeds the height allotted to the bod of the window then this body area should start to scroll, where when the user scrolls the footer always remains in place – its just the body content which is scrolling.

How to accomplish this using CSS, jQuery and that it works with IE8?

The code should look like this, basically:

<div id="wrap">
  <div id="header">
    ... 25 px high space fixed to the top
  </div>
  <div id="body">
    ... stretches to fill the space available height/width ... 
    ... scrollbars available when the body content exceeds height available ...
    ... jQuery allows user to resize the whole window, so this body should always fill ...
  </div>
  <div id="footer">
    ... 50px footer with controls, must always be fixed to bottom of window ...
    ... must never move no matter if the user scrolls the body ...
  </div>
</div>

Can this be accomplished so that it works cross browser? IE8+, Firefox, Chrome?

  • 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-17T03:27:26+00:00Added an answer on June 17, 2026 at 3:27 am

    Try a demo here http://jsfiddle.net/XfPAG/4/. The idea is using absolute position:

    HTML

    <div id="wrap">
      <div id="header">
        ... 25 px high space fixed to the top
      </div>
      <div id="body">
        ... stretches to fill the space available height/width ... 
        ... scrollbars available when the body content exceeds height available ...
        ... jQuery allows user to resize the whole window, so this body should always fill ...
      </div>
      <div id="footer">
        ... 50px footer with controls, must always be fixed to bottom of window ...
        ... must never move no matter if the user scrolls the body ...
      </div>
    </div>
    

    CSS:

    #wrap, #header, #body, #footer {
      position: absolute;
      left: 0;
      right: 0;
    }
    
    #wrap {
      top: 0;
      bottom: 0;
    }
    
    #header {
      height: 25px;
      top: 0;
    }
    
    #footer {
      height: 50px;
      bottom: 0;
    }
    
    #body {
      top: 25px;
      bottom: 50px;
      overflow: auto;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to produce a popup window giving the user to ability to
Within an ASPX page, I would like to have the popup shown within the
I have jQuery which produces a popup window, as outlined here: http://www.jsfiddle.net/sLjfx/4/ The problem
I have a Java swing application with a button that produces a popup window
I am trying to produce a report which identifies client cases which were open
I developed a basic web page in MVC 2 for learning the framework, and
I have model in a view like this @model List<Products> I can itereate over
The following function opens a popup window when I click a link: function popupPlace(dict)
I am doing some twitter authentication in classic asp (I know, but I can't
Ok, so here's the deal: Currently we have a page that calls a popup

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.