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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:57:57+00:00 2026-05-26T08:57:57+00:00

WebKit/Blink’s (Safari/Chrome) default behaviour on MacOS since 10.7 (Mac OS X Lion) is to

  • 0

WebKit/Blink’s (Safari/Chrome) default behaviour on MacOS since 10.7 (Mac OS X Lion) is to hide scroll bars from trackpad users when they’re not in use. This can be confusing; the scroll bar is often the only visual cue that an element is scrollable.

Example (jsfiddle)

HTML

<div class="frame">
    Foo<br />
    Bar<br />
    Baz<br />
    Help I'm trapped in an HTML factory! 
</div>

CSS

.frame {
    overflow-y: auto;
    border: 1px solid black;
    height: 3em;
    width: 10em;
    line-height: 1em;
}​

WebKit (Chrome) Screenshot

screenshot of a div with no visible scroll bar

Presto (Opera) Screenshot

screenshot of a div with a visible scroll bar


How can I force a scroll bar to always be displayed on a scrollable element in WebKit?

  • 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-26T08:57:58+00:00Added an answer on May 26, 2026 at 8:57 am

    The appearance of the scroll bars can be controlled with WebKit’s -webkit-scrollbar pseudo-elements [blog]. You can disable the default appearance and behaviour by setting -webkit-appearance [docs] to none.

    Because you’re removing the default style, you’ll also need to specify the style yourself or the scroll bar will never show up. The following CSS recreates the appearance of the hiding scroll bars:

    Example (jsfiddle)

    CSS

    .frame::-webkit-scrollbar {
        -webkit-appearance: none;
    }
    
    .frame::-webkit-scrollbar:vertical {
        width: 11px;
    }
    
    .frame::-webkit-scrollbar:horizontal {
        height: 11px;
    }
    
    .frame::-webkit-scrollbar-thumb {
        border-radius: 8px;
        border: 2px solid white; /* should match background, can't be transparent */
        background-color: rgba(0, 0, 0, .5);
    }
    
    .frame::-webkit-scrollbar-track { 
        background-color: #fff; 
        border-radius: 8px; 
    } 
    

    WebKit (Chrome) Screenshot

    screenshot showing webkit's scrollbar, without needing to hover

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

Sidebar

Related Questions

This problem exists for webkit browsers only chrome and possibly safari (i've not tested
When using a WebKit browser (Chrome or Safari), if I try to get the
CSS3 -webkit-transition is choking on multiple box-shadow values and text-shadow values. (Chrome & Safari)
On webkit nightly builds and chrome canary, every element with position fixed seems to
WebKit/Safari supports the console object, which is similar to what Firebug does. But what
Webkit (on iPhone and Safari, at least) supports HTML5's database storage via SQLite. I'm
Does -webkit-font-smoothing properties only work on Mac browsers, Not windows? I'm using a Google
When printing from WebKit, it seems to automatically impose a shrink factor on the
For some reason my webkit definition works on chrome but in firefox 3.5.11 I
dom.style.-webkit-transform ='rotate(-90deg)'; In Chrome it tell: Uncaught SyntaxError: Unexpected token -

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.