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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:50:07+00:00 2026-05-20T09:50:07+00:00

I am trying to find a way to add a cross-browser compatible scrollbar to

  • 0

I am trying to find a way to add a cross-browser compatible scrollbar to a div.

I’ve had to resort to using a mixture of two methods- see css below:

.div{
    /*-Only works for IE*/
    overflow-y:scroll;
    overflow-x:hidden;

    /*Works for all browsers except IE*/
    overflow: -moz-scrollbars-vertical;
}

The only problem I’ve found with this method is that the non-IE scrollbar moves the contents of the div across to accommodate and IE-only scrollbar doesn’t.

Is there a better method anyone knows 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-20T09:50:07+00:00Added an answer on May 20, 2026 at 9:50 am

    I don’t know if this will help.. however

    div {
    width: 200px; /* as example*/
    height: 300px; 
    overflow: auto; /* this will add scrollbars automatically if your div is larger than the specified dimensions */
    }
    

    cheers

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

Sidebar

Related Questions

I am trying to find a way to add content to a div that
I've spent some time trying to find a way CodeRush could add using when
I was googling trying to find a way to call Control.DataBindings.Add without using a
I'm trying to find a way that will add / update attribute using JavaScript.
searching around trying to find a way to add index on suffix of a
I'm trying to find a way to automate some exception logging code to add
I'm using MS UnitTesting and trying to find my way around writing my first
I'm trying find a way to have PHP to indicate to the browser that
I am trying to find a way to add Git to the Windows path.
I'm trying to find the proper way to add a custom widget to 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.