41

I am generating a list of organisations of the left hand side of this page: http://www.ihhub.org/member-map/

This list is generated through appending <span> tags that are linked to the corresponding map.

My issue is - the scroll bar does not appear in CHROME but does appear in Firefox and Safari.

Any solutions?

UPDATE:

This issue appears to be isolated to MAC OS.

SOLUTION:

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}
Mr Lister
  • 45,515
  • 15
  • 108
  • 150
Graham Cairns
  • 961
  • 1
  • 7
  • 10

5 Answers5

55

According to CSS - Overflow: Scroll; - Always show vertical scroll bar?: OSx Lion hides scrollbars while not in use to make it seem more "slick", but at the same time the issue you addressed comes up: people sometimes cannot see whether a div has a scroll feature or not.

CSS fix:

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}
Community
  • 1
  • 1
Graham Cairns
  • 961
  • 1
  • 7
  • 10
  • 3
    This is almost a great solution, problem is it adds space for the scrollbar gutter that wouldn't otherwise be there. I wish there was a way to show it without taking up extra space. – Yarin Oct 16 '18 at 19:22
11

I am seeing scroll bar well. If you are using Mac, you may want to make sure that scrollbars are always shown

System preferences >> general

Timo
  • 727
  • 5
  • 15
  • Hi Timo - unfortunately the scroll bar does not appear on the list of organisations when I changed the mac settings. Furthermore - I believe - that this is an issue on Chrome for Mac and Windows. – Graham Cairns Feb 04 '16 at 13:07
  • Great Timo - looks like it is just Mac that this is not appearing on automatically. I am still seeking for this solution. I have changed overflow-y:scroll to overflow:auto and no change. – Graham Cairns Feb 04 '16 at 13:30
2

Add this to your css

.list::-webkit-scrollbar {
    -webkit-appearance: scrollbartrack-vertical;
}    

or

.list::-webkit-scrollbar {
   -webkit-appearance: scrollbarthumb-vertical;
} 
Timo
  • 727
  • 5
  • 15
1

I am using Windows 8 and Google Chrome version is 48.0.2564.97. And its working perfect. See in image highlighted area.

enter image description here

Ajay Gupta
  • 2,867
  • 23
  • 28
0

I am using Crome Version 48.0.2564.97 m

And it is working just fine.. Change it to overflow-y:auto in case if there are not enough items it will not show scroll.

enter image description here

naman
  • 52
  • 1
  • 10
  • I am glad to see this is working on Chrome - is this on Windows. If so the issue is still on Mac. I have changed to overflow:auto as per a few comments. Please advise. – Graham Cairns Feb 04 '16 at 13:29