6

I am very glad to use this wonderful library - jQuery Nice Select link. But i cant understand why this not support scroll bar especially in google chrome

Chrome :

enter image description here

And Firefox

enter image description here

I can't understand why google chrome doesn't support scroll bar or I should add it somehow?

dreamcrash
  • 47,137
  • 25
  • 94
  • 117
Nikola Marinov
  • 223
  • 1
  • 11

2 Answers2

9

This isn't related to Firefox or Chrome. You may just be looking at the browsers with different viewports.

In any case, you need to add this to your CSS to add a scrollbar:

.list {
  max-height: 100px; // or whatever the height you want
  overflow-y: scroll !important;
}

Source: tested it myself in both Chrome and Firefox.

Thomas Yamakaitis
  • 417
  • 2
  • 6
  • 20
-2

Try this out...

NOTE: This hides the scrollbar, so some people who prefer scrollbars over gestures may have some trouble accessing your site


/* Hide scrollbar for IE, Edge and Firefox */
.example {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

Credits w3schools

Manu G
  • 158
  • 5
  • 13