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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:47:41+00:00 2026-05-24T05:47:41+00:00

I am trying to create my own scroll bars. I have tried most of

  • 0

I am trying to create my own scroll bars. I have tried most of the jquery scrollbar plugins and none of them seem to work for me, so I decided to create my own. I have an overflow area with scrollable content. I can get the scrollbar to work if I am able to figure out the height of the scrollable content area. I have tried .scrollHeight() and the browser doesn’t even recognize it. The overflow area has a fixed position.

  • 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-24T05:47:42+00:00Added an answer on May 24, 2026 at 5:47 am

    scrollHeight is a property of a DOM object, not a function:

    Height of the scroll view of an element; it includes the element padding but not its margin.

    Given this:

    <div id="x" style="height: 100px; overflow: hidden;">
        <div style="height: 200px;">
            pancakes
        </div>
    </div>
    

    This yields 200:

    $('#x')[0].scrollHeight
    

    For example: http://jsfiddle.net/ambiguous/u69kQ/2/ (run with the JavaScript console open).

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

Sidebar

Related Questions

I am trying to create my own Native win32 C++ Checkbox that can have
I am trying to create my own Perl module in /usr/local/lib/perl I have the
I am trying to create my own styled checkbox jQuery plugin. What I want
I'm trying to create my own small Windows 7 Phone app. I have downloaded
i'm trying to create my own jquery plugin but am having problems bubbling the
I have been trying to implement scroll bars to scroll through the content of
Im trying to create my own Frame for my application. I have removed the
I've been trying to create my own custom scroll bar implementation in JavaScript. It
I'm trying to create my own loadbar; It consists of 5 bars, sliding in
I am trying to create my own lightbox for images on my website. Yes,

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.