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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:15:17+00:00 2026-05-13T01:15:17+00:00

The question explains it pretty fully, but here’s some more detail: I have a

  • 0

The question explains it pretty fully, but here’s some more detail:

  1. I have a div with a fixed height.
  2. Content is dynamically loaded via Ajax and appended to the div.

Added content is always positioned at the bottom of the div.

2 pieces of content (no scrolling yet)

-------------------------div--
|                            |
|                            |
|                            |
|                            |
| some content (10:00 am)    |
|                            |
| some content (10:03 am)    |
------------------------------

Additional content pushes existing content up until the div starts to scroll in the y-direction.

5 pieces of content (1 item scrolled)

-------------------------div--
| some content (10:03 am)   ^|
|                            |
| some content (10:04 am)   #|
|                           #|
| some content (10:07 am)   #|
|                           #|
| some content (10:09 am)   v|
------------------------------

Can this be done with CSS?

EDIT

Must work in Internet Explorer!

  • 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-13T01:15:17+00:00Added an answer on May 13, 2026 at 1:15 am

    I think you’ll need to use Javascript to do the scrolling part by setting scrollTop to the scrollHeight after each append. My buddy Eric Pascarello posted a solution quite a while ago.

    Getting it vertically positioned to the bottom is also somewhat of a challenge, but the following CSS ought to do it…

    <div id="test">
      <div class="bottom">
        <p>Test1</p>
        <p>Test2</p>
        <p>Test3</p>
        <p>Test4</p>
        <p>Test5</p>
        <p>Test6</p>
        <p>Test7</p>
        <p>Test8</p>
        <p>Test9</p>
      </div>
    </div>
    
    
    #test
    {
      background:green;
      height:100px;
      position:relative;
    }
    
    #test .bottom
    {
      bottom:0px;
      max-height:100px;
      overflow:auto;
      position:absolute;
      width:100%;
    }
    
    #test p
    {
      margin:0;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen posts which explains pretty much this question but they all used
I have one more question(first one is here: html, css with center div problem
The title pretty much explains the question. I have a user control loaded into
Title pretty much explains most of my question. I will provide some context. I've
I think the question pretty explains what I'm intending to do. I have seen
The title pretty much explains the meat of the question. I'm debating on starting
the question explains it all. For instance, if I have a NSDictionary like this
To explain my question I have created this http://jsfiddle.net/Jams/XNVB2/ here I want when div1
The title pretty much explains my question. I would like to be able to
Question pretty much explains it all. I've been wondering why Java has nice, organized

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.