ListBox scrollbar always appears in Chrome

I use a list that - only in Chrome - always has its own vertical scroll bar, regardless of the number of items in it. In all other browsers, when the number of lines in the list is equal to or greater than the number of elements, the scroll bar is automatically hidden.

Does anyone know how to get this result in Chrome?

+3
source share
2 answers

To hide this vertical scrollbar (and the horizontal scrollbar if it appears), you need to use the CSS overflow property with the hidden value.

0
source

Have you tried using auto? eg:

#listbox
{
    overflow: auto
}
0
source

All Articles