Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I couldn't get it to work with a table - only with having to scroll all the way to the bottom to find the horizontal scrollbar.

Edit: hmm, it's working in the CodePen here: https://css-tricks.com/a-table-with-both-a-sticky-header-and... I'll have to fully revisit what I was trying to do and see if I can get it working.

Edit 2: Oh, I realized that I wanted the horizontal scrollbar to be sticky when it is an element taking part of the vertical space of a page, but more than a screenful. I found this that solves it but not for a table with a fixed header: https://amphiluke.github.io/handy-scroll/ To see what I'm talking about, go to the top of the demo, horizontally scroll, and note that horizontal scrollbar is shown when scrolling horizontally. Then click disable, and note that it isn't shown when scrolling horizontally, unless you go all the way to the bottom. Or, if you don't have a trackpad, you actually have to go all the way to the bottom to scroll it horizontally.



Have you tried holding shift while scrolling?


Yeah, it doesn't make a difference, and my use case is scrolling with just a mouse.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: