Hide vertical scroll (overflow)

I have a container that is holding a collection of users.
I want to show the scroll bar for the horizontal overflow but hide the scroll bar for the vertical overflow.

The header row and main collection list are grouped within a container.
If I allow overflow for the collection list, it’ll scroll independent to the header.

If I allow overflow on the main container, the header will scroll horizontally with the list but it’ll also scroll vertically when ideally it should be sticky/fixed.

What’s the best way to arrange this?

Hi @rory :wave:

Here’s a video that goes into detail about how the overflow property works, using the complexity of the table element as an example:

Does it help?

1 Like

@Joyce But by using overflow:hidden; it is then not possible to scroll anymore… What if we want to allow scrolling while not displaying scrollbars?

You need to add custom CSS, something like this:

2 Likes

You can use CSS

scrollbar-width: none;

Reference link: