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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:14:43+00:00 2026-05-15T05:14:43+00:00

Is it possible to stack three DIVs vertically and have just the middle div

  • 0

Is it possible to stack three DIVs vertically and have just the middle div scroll vertically? I don’t want to use pixel heights, though, because the DIVs are inside of a dialog box that is resizeable. Something like this (pardon my lousy ASCII art):

+-----------+
|  Header   |
+-----------+
|          ^|
|          ||
|  Scroll  ||
|          ||
|          v|
+-----------+
|  Footer   |
+-----------+

The goal is to have the header and and footer fixed and, as the dialog grows, the middle div would grow vertically. Maybe I’m just being stupid, but I’ve been fighting this for the last few hours and can’t seem to get it right. The three DIVs probably need to be inside “another” DIV but when I do that, and set the height to 100%, it grows as the middle DIV grows. Again, it’s probably something silly I’m not accounting for. I’ve also tried using a TABLE to no avail.

Thanks for any help.

  • 1 1 Answer
  • 1 View
  • 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-15T05:14:44+00:00Added an answer on May 15, 2026 at 5:14 am

    This should work

    <div id="header" style="position:absolute; top:0px; left:0px; height:50px;overflow:hidden;">
    </div>
    <div id="content" style="position:absolute; top:50px; bottom:50px; left:0px; overflow:auto;">
    </div>
    <div id="footer" style="position:absolute; bottom:0px; height:50px; left:0px; overflow:hidden;">
    </div>
    

    Edited – For fixed position header and footer in modal dialog

    <div id="wrapper" style="position:relative; overflow:hidden; height:100%; width:100%;">
        <div id="header" style="position:absolute; top:0px; left:0px; height:50px;overflow:hidden;">
        </div>
        <div id="content" style="position:absolute; top:50px; bottom:50px; left:0px; overflow:auto;">
        </div>
        <div id="footer" style="position:absolute; bottom:0px; height:50px; left:0px; overflow:hidden;">
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several vertically stacks divs and I want to have a div appear
Possible Duplicate: Removing an activity from the history stack Suppose I have three activities
It's is possible to stack fragments on top of each other? Just tried to
I have the following stack trace. Is it possible to make out anything useful
http://jsfiddle.net/vrcQp/ I want these buttons to be centered (the three versions represent different possible
Is it possible to set the stack limit in DevC++? Basically the same as
Is it possible yet to compile a full PHP stack - say Apache, PHP,
Is it possible to view the complete list of call stack for a given
Possible Duplicate: What does ^ in objective C mean? [SKSite requestSiteWithNameLike:@Stack Overflow completionHandler:^(SKSite *site,
When using reflection it is possible to obtain the call stack (apart from that

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.