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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:55:37+00:00 2026-05-11T16:55:37+00:00

Here is my situation, I have a div which has height:400px and overflow:auto to

  • 0

Here is my situation, I have a div which has height:400px and overflow:auto to get scrolled when the content is longer than 400px. inside this div I have 2 divs. A normal one with unkown height and another with absolute positioning which in anchored to bottom:0px;

As long as there is no scrollbar and the height is below 400px everything is OK. but as soon as we get scrollbars the problem occurs.

Here is the problem, I want the absolute div to be positioned according the real hight of div content not 400px. I want it to be always at the bottom of the scrollbar position down in the bottom not just the visual zero bottom.

is there anyone who could shed some light?

  • 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-11T16:55:37+00:00Added an answer on May 11, 2026 at 4:55 pm

    How about wrapping the two inner divs with another that has a “min-height” of 100% (and a “position” of “relative” to make it an offset parent for the absolutely positioned div)? A quick test in Chrome suggests this might work.

    IE6 may be a bit trickier (if you need to support it), as it doesn’t support “min-height”. You might, with an IE6 specific CSS hack, get “height” to do that for you, though, as IE6 seems to treat “height” pretty much like “min-height”.

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

Sidebar

Related Questions

Here's the situation I have a webpage which has one drop down called prefer.
Ok, here is my situation, which has come to this... dramatic pause... I have
I have a situation in here I have a div that was margin: auto
here's the situation: I have a where in every cell all the area has
Here is a problem I have encountered. I have jsp page which has a
Okay, here is my situation. I have a page, index.php, which is the mainsite
Here is the situation : I have a vertical menu with div. Each div
Here's the situation: I have a label's text set, immediately followed by a response.redirect()
Here is the situation: I have been called upon to work with InstallAnywhere 8,
Here's the situation: we have an Oracle database we need to connect to to

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.