Is there a jQuery plugin, or other JS library, for making certain elements have a fixed horizontal position, while allowing a variable vertical position?
I have a rather wide tabular form, and each row in the form has a label. When the user scrolls horizontally, I’d like to fix the label to the left-hand side so that its always visible, allowing the user to quickly identify the row they’re working on.
I’ve searched without much success, even though I’ve found a few examples of doing the opposite (i.e. fixed vertical position while allow horizontal scrolling as in ScrollToFixed).
For my application, I found all I needed to do was update the
leftCSS attribute proportional to the current scroll position. I did this using the following JS: