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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:20:24+00:00 2026-06-17T11:20:24+00:00

I need DIV with scroll inside, and it should be 100% height of browser

  • 0

I need DIV with scroll inside, and it should be 100% height of browser view,
also need another DIV at the bottom with position absolute (fixed is not an option)

is this can be done?

+-ooo----------------------------------+
|              Web Browser             |
+--------------------------------------+
|                                      |
|         BODY overflow:hidden         |
|                                      |
|                                      |
|       DIV WITH SCROLL INSIDE IT      |
|        height:100% (of window)       |
|           overflow: scroll           |
|                                      |
|                                      |
|                                      |  
+--------------------------------------+
|         Fixed DIV height:50px        |
+--------------------------------------+
  • 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-17T11:20:25+00:00Added an answer on June 17, 2026 at 11:20 am

    I think if you position that div at the bottom, it may appear above the main content area.

    You can achive the 100% height with this CSS though:

    html, body, #content_div
    {
        height: 100%;
    }
    

    And then set the overflow on the content div. The tricky part will be getting the fixed div at the bottom to not overlap. The only way you’re going to get that in a cross-browser manner is to use Javascript to detect the height of the available window at the start, subtract the 50px from that, and set that height on the content div. You’ll probably need to add an onresize event handler in there too to handle the cases when a user resizes the browser window.

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

Sidebar

Related Questions

I have a div inside another div which has a fixed position at the
I have the following html structure <div style=overflow-x:auto;overflow-y:hidden;position:relative> <div style=position:absolute; top:0;bottom:0;padding-top:30px> </div> </div> When
I need a fixed position thead that is static when the parent DIV element
I need a fixed div that have a linear-gradient background. In all browser the
I need to scroll up the div as the new text comes in. My
I got a div which is of fixed width and height: #containersimg { width:
I need to load data inside a div only when I reached near the
I have one div position:fixed; and my problem is that position fixed is relatively
I am trying to be able to scroll inside one div but without showing
I have one div inside another. The inner div is larger than the outer

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.