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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:52:07+00:00 2026-05-25T14:52:07+00:00

I have a div that has scrollable content, but it is vital that this

  • 0

I have a div that has scrollable content, but it is vital that this div, is positioned relatively with a margin of 36px from the top of the browser, or absolutely positioned from the top.

It is also important that the div fills the height of the browser’s viewport.

My problem is that the bottom of the div’s scrollbar cannot be seen as it is 36px pushed down. The content is also pushed down, but I have been able to get round this by adding padding to the bottom. This happens for all browsers. Is there a way I can make this div have a scrollbar that fits to the browser viewport which takes into account of the div’s margin from the top?

The result is the same if I positioned the div absolutely or relatively with margin-top: 36px;

The css for this div is as follows:

div.#panel1 {
   position: absolute;
   top: 36px; 
   right: 0;
   overflow: auto;
   background: #636362;
   padding: 0 0 20px 0px;
   width: 290px;
   height: 100%;
}

Additionally I find the scrolling experience in IE 7 really slow and jerky for this div, but the browser’s scrollbar is fine? Is there a bug I should know of?

  • 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-25T14:52:08+00:00Added an answer on May 25, 2026 at 2:52 pm

    You can set both top and bottom when positioning something absolutely: http://jsfiddle.net/kizu/xSgTW/

    So, if you don’t set height and set

    top: 36px;
    bottom: 0;
    

    Then the div’s top line would be on 36px and bottom, well, at the bottom.

    Regarding scrolling: there can be a lot of things that affect the scrolling speed in IE, but AFAIR the scrolling in blocks with overflow: auto is always slower than scrolling of the body.

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

Sidebar

Related Questions

I have a div element that has an id and this div contains a
I have a container div element that has overflow:hidden on it. Unfortunately this property
I have a div that has content in it. <section id=latest-news> <p>Pellentesque habitant morbi
I have a div that has background:transparent , along with border . Underneath this
I have a div that has this property: text-shadow:2px 2px 3px #252525; It works
I have a div that has it's opacity set to 60. Inside the div,
I have an XHTML strict page that has an invisible div that is controlled
In a web application, I have a page that contains a DIV that has
Hey i have this div that shows as a popup: <div class=popup> </div> Then
I have a div that has a large number of items in it. I

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.