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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:02:49+00:00 2026-05-17T00:02:49+00:00

UPDATE: I think there was too many information. Here’s my question: how to make

  • 0

UPDATE: I think there was too many information. Here’s my question: how to make the height of #middle 100% of the remaining space in the following exampl:

<body>
    <div id="big">
        <div id="header"></div>
        <div id="middle"></div>
        <div id="btm"></div>
    </div>
</body>

height of #big, body, html is all 100%.
Height of header and bottom are 120px;

  • 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-17T00:02:49+00:00Added an answer on May 17, 2026 at 12:02 am

    Update: Changed my example to match your updated question

    Here’s a working example of your layout. Tested in IE8, IE7, Firefox, and Chrome.

    The key here is NOT to set this height of middle to 100%. Instead, you position it absolutely, with top and bottom equal to the height of your header and btm elements (in your case, 120px).

    If you set the height of the middle element to 100%, it will be the same height as the big element, which is 100% of the body tag, and hence your middle element will be too large, causing horizontal scroll bars.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <style type="text/css">
            html
            {
                height: 100%;
            }
            body
            {
                background-color: #EEEEEE;
                height: 100%;
                padding: 0;
                margin: 0;
            }
            #big
            {
                width: 100%;
                height: 100%;
            }
            #header
            {
                width: 100%;
                background-color: #DDD;
                height: 120px;
            }
            #btm
            {
                width: 100%;
                height: 120px;
                position: absolute;
                bottom: 0px;
                background-color: #999;
            }
            #middle
            {
                width: 100%;
                position: absolute;
                top: 120px;
                bottom: 120px;
            }
        </style>
    </head>
    <body>
        <div id="big">
            <div id="header">
                header
            </div>
            <div id="middle">
                middle
            </div>
            <div id="btm">
                bottom
            </div>
        </div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(please read the update section below, I leave the original question too for clarity)
My question is in regard to referencing open source frameworks. There are many of
Not getting into too many specifics, this is a high level question. I've always
[2015 update: I think it's safe to say that Flash is rapidly dying. Don't
Update I don't think I was clear enough when I originally posted this quesion.
I think it is pretty straightforward. All I am trying to do is update
I need to perform update/insert simultaneously changing structure of incoming data. Think about Shops
This SQL statement example is very close to what I think I need... update
I've read over this question and I think that is a great start, but
I used the code described here to update an excel sheet using c#. The

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.