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

  • Home
  • SEARCH
  • 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 6926367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:54:34+00:00 2026-05-27T10:54:34+00:00

I have a div and for some reason there are regular scrollbars on the

  • 0

I have a div and for some reason there are regular scrollbars on the page even though there is nothing in the div. The div is set to 100% height and overflow:auto but the scrollbars still appear even when there is no content.

To test something, I put the following in the div style:

padding-top:500px

What it did was leave that 500px space from top and then display the text I had but after that the same amount of space was there too.

So it was something like this:

|       |
| 500px |
|       |
| xxx   |
|       |
|       | -> See that extra space after the content?
|_______|

Please help


HERE IS SAMPLE CODE:
http://jsfiddle.net/Saq4T/

  • 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-27T10:54:34+00:00Added an answer on May 27, 2026 at 10:54 am

    Padding is added on to the overall height, not included in it. Read about the box model.

    Therefore, a div with 100% height and 500px padding really 100% + 500px tall.

    Add margin-bottom:-500px; if you still want padding but don’t want the scrollbar.

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

Sidebar

Related Questions

I have a link which animates some div 's height when its hovered, but
I have a div (sub area of page with scroll bar) that has some
I have one aspx page with some controls. Also i have one DIV which
I have a problem with the load function described below. For some reason even
OK, I have an Apple-themed nav bar, and for some reason there is some
I have a div with float:right (no position property declared). This div has some
I have a div with id=images. The div contains some images that are each
I have a div element containing some text. When the user clicks a word
I have such div: <div class=box> <div id=myid style=display:hidden;> <p>some stuff here</p></div> </div> when
If I have a HTML form with some embedded div s, and after 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.